-
-
Notifications
You must be signed in to change notification settings - Fork 392
Merge type stubs #1873
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
Closed
Closed
Merge type stubs #1873
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
6d6af4d
mypy the entire trio package
altendky 082f656
update mypy to 0.800
altendky 1c00364
more specific ignores, etc
altendky 9f94c1e
disallow_incomplete_defs = True
altendky c5d0170
just os.PathLike without [str] for now
altendky 874eea1
get Literal from typing_extensions
altendky 778b425
cleanup
altendky b0a5e9e
work on Windows specific issues
altendky 5366d37
a couple more details
altendky 7b38047
black
altendky 8371daf
maybe this time
altendky 0f313e5
correct to AssertionError
altendky 8da7514
flake8
altendky e4fc53c
fixup docs requirements
altendky 55fad66
disallow_subclassing_any = True
altendky ce44c04
disallow_any_decorated = True
altendky f8e83c6
fixup tests
altendky 83600f8
fix import loop
altendky e478503
get Protocol from typing_extensions
altendky c34029b
queue.Queue isn't typing.Queue
altendky 0ec01a1
queue.Queue isn't typing.Queue (again)
altendky b33978a
try again
altendky 2d1882e
some workarounds for 3.6
altendky b77b3cb
another 3.6 (only windows) workaround
altendky b9dc659
circular import fix for macos
altendky 44e60ea
circular import fix for macos (again)
altendky 490cccd
handle some more win32 stuff
altendky c3db271
more
altendky 897272f
Merge branch 'master' into merge_hints
altendky 1915661
catch up
altendky 2d70fa0
separate type checking
altendky 4cf386e
black
altendky c1dd0d9
type check 3.6 - 3.9 on each platform
altendky 2623aff
oops
altendky 6dbb496
misc
altendky 65e8572
generate generated files
altendky 74543e0
update generated imports
altendky 7e8aed5
more imports for the generated files
altendky 8a7ce74
always more
altendky 8075233
reformat imports for generated code
altendky 6e58b9d
some doc stuff
altendky 928f9dc
Merge branch 'master' into merge_hints
altendky 3ecd3df
drop the SocketType ABCMeta change for now
altendky 37b21c1
nitpick ignore
altendky f3c02e4
a start at disallow_untyped_defs = True
altendky 49289ab
piles, upon piles
altendky a0abc2d
flake8
altendky 8ca2719
flake8
altendky ca44f08
-> None (and more)
altendky b1e2fb7
black
altendky 55d1915
again
altendky 9ecbc1d
black
altendky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't that be
As that is the type the contextmanager protocol uses
(Maybe with added
= Nones, not sure about that)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this helps anything, but it does seem more proper. Though I think
-> Noneis an accurate and good expression of the behavior. Thanks.Added to the list in the OP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using
-> Nonewould disallow subclasses from returningTrueif they have some reason for that(returning
NoneandFalsehave the same effect)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Thanks for following up.