This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
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.
mypy plugin to check
@cached
return types #14911mypy plugin to check
@cached
return types #14911Changes from 42 commits
eb24cdb
d2cbac3
90631ac
4eb7de9
ad1c28a
88323dd
676c858
008ef3f
8aa4e87
0f3c036
9c94574
f5fec7f
9a62053
cc61862
a27a67f
8f7f4d7
9fdc5a1
d8cce5b
ef61f3d
96faa34
2f75929
7849b26
8b1b15b
451c9b1
d52e30c
47b7ba7
ee77d82
0f02ad1
51a1a5f
07c4531
745ad61
03b0e40
2c07b1f
460ed3c
fbecb56
dba8e72
4f06d85
3875662
fb4ff5d
06ddf65
9b7ee03
e2f599d
da377cf
a2956a6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Aside: If we have function returning e.g.
Deferred[Deferred[T]]
, it looks like this function doesn't loop and extract the inner T. But we shouldn't be doing that in the first place.(Would such a type even be legitimate?)
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 think it wouldn't make sense? Please don't do 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'm not sure that's even really doable since a
Deferred
returning aDeferred
will wait on the innerDeferred
? https://docs.twistedmatrix.com/en/stable/core/howto/defer.html#chaining-deferredsAnyway, that interaction always confuses me and I'm willing to not support it.
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.
<3
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.
Can we add a sentence explaining why there is a wrapper? It looks like the point is mainly to check that we have a proper
CallableType
(?)OTOH if it's just "to have smaller functions" then let's leave it as is.
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 almost inlined it, but it seemed nice to keep them separate.