Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't return False always on __exit__() #6749

Merged
merged 1 commit into from
Oct 26, 2019

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Oct 20, 2019

Feature or Bugfix

  • Refactoring

Purpose

According to the python/mypy#7214, mypy-0.740 prefers a return value of
__exit__() method which does not swallow exceptions is None
instead of bool.

According to the python/mypy#7214, mypy-0.740 prefers a return
value of __exit__() method which does not swallow exceptions is
None instead of bool.

mypy#7214: python/mypy#7214
@tk0miya tk0miya added this to the 2.2.1 milestone Oct 20, 2019
@codecov
Copy link

codecov bot commented Oct 20, 2019

Codecov Report

Merging #6749 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6749      +/-   ##
==========================================
- Coverage   84.42%   84.41%   -0.01%     
==========================================
  Files         266      267       +1     
  Lines       40474    40496      +22     
  Branches     5934     5937       +3     
==========================================
+ Hits        34170    34186      +16     
- Misses       4997     5000       +3     
- Partials     1307     1310       +3
Impacted Files Coverage Δ
sphinx/util/docutils.py 95% <100%> (-0.03%) ⬇️
sphinx/__init__.py 73.91% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6a2a59...ee45bb3. Read the comment docs.

@tk0miya tk0miya changed the base branch from master to 2.2.2 October 26, 2019 09:06
@tk0miya tk0miya modified the milestones: 2.2.1, 2.2.2 Oct 26, 2019
@tk0miya tk0miya merged commit 472de2e into sphinx-doc:2.2.2 Oct 26, 2019
@tk0miya tk0miya deleted the dont_return_False_on___exit__ branch October 26, 2019 09:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant