Skip to content

Commit 06c86f1

Browse files
committed
Merge branch 'overloads' of https://github.com/erictraut/typing into overloads
* 'overloads' of https://github.com/erictraut/typing: [pre-commit.ci] auto fixes from pre-commit.com hooks
2 parents 660295c + f993b28 commit 06c86f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/spec/overload.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ programming error and should be reported by type checkers::
196196
@overload
197197
def func1(x: int) -> str: ...
198198

199-
[Eric's note for reviewers: Mypy exempts `__get__` from the above check.
199+
[Eric's note for reviewers: Mypy exempts `__get__` from the above check.
200200
Refer to https://github.com/python/typing/issues/253#issuecomment-389262904
201201
for Ivan's explanation. I'm not convinced this exemption is necessary.
202202
Currently pyright copies the exemption. Do we want to codify this or leave it
@@ -503,4 +503,3 @@ For example, if class C inherits from A and B, should we expand C into A and B
503503
for purposes of overload matching? This could get very expensive and difficult
504504
to spec, and it feels like a significant edge case, so I'm inclined to leave it
505505
out. No one has asked for this, to my knowledge.]
506-

0 commit comments

Comments
 (0)