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

Make all sentinel values inspectable by IDEs #75

Merged
merged 4 commits into from
Oct 13, 2018
Merged

Make all sentinel values inspectable by IDEs #75

merged 4 commits into from
Oct 13, 2018

Conversation

sethmlarson
Copy link
Member

PyCharm has difficulty inspecting values that are both dynamically added to __all__ and created via globals()[x] = .... To the detriment of "only-update-one-place" I think it's valuable to have these values inspectable given how frequently they show up in a users codebase when using this library.

@codecov-io
Copy link

codecov-io commented Oct 12, 2018

Codecov Report

Merging #75 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #75   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines         910    919    +9     
  Branches      175    173    -2     
=====================================
+ Hits          910    919    +9
Impacted Files Coverage Δ
h11/_state.py 100% <100%> (ø) ⬆️

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 9c10614...7bfa5b8. Read the comment docs.

@sethmlarson
Copy link
Member Author

Recommending a Squash Merge to hide those silly mistakes I made in GitHubs web editor. :)

Copy link

@pquentin pquentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks.

Copy link
Member

@njsmith njsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick, otherwise looks good to me.

h11/_state.py Outdated
@@ -114,20 +114,31 @@
from ._events import *
from ._util import LocalProtocolError, make_sentinel

# Everything in __all__ gets re-exported as part of the h11 public API.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can keep this comment :-)

@sethmlarson
Copy link
Member Author

Done! :)

@njsmith
Copy link
Member

njsmith commented Oct 13, 2018

Awesome, thanks!

@njsmith njsmith merged commit 87442eb into python-hyper:master Oct 13, 2018
@njsmith
Copy link
Member

njsmith commented Oct 13, 2018

Oh, I forgot to squash. Sorry!

@sethmlarson sethmlarson deleted the patch-1 branch October 18, 2018 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants