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

First draft of an update to the Overloads chapter (DRAFT: DO NOT MERGE) #1839

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from
Draft
Changes from 13 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bab532e
First draft of an update to the Overloads chapter.
erictraut Aug 13, 2024
de81026
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 13, 2024
5ca254e
Updated draft based on initial round of feedback.
erictraut Aug 16, 2024
33c819f
Merge branch 'overloads' of https://github.com/erictraut/typing into …
erictraut Aug 16, 2024
f993b28
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 16, 2024
660295c
Fixed reference.
erictraut Aug 16, 2024
06c86f1
Merge branch 'overloads' of https://github.com/erictraut/typing into …
erictraut Aug 16, 2024
831945b
Fixed reference.
erictraut Aug 16, 2024
3906a12
Another reference fix.
erictraut Aug 16, 2024
bb8fe09
Incorporated PR feedback.
erictraut Aug 23, 2024
cce3879
Made changes to proposed overload chapter based on reviewer feedback.
erictraut Aug 28, 2024
7591a4d
Incorporated additional feedback from reviewers.
erictraut Aug 28, 2024
91d4adc
Incorporated more feedback.
erictraut Aug 29, 2024
69d6d4a
Fixed typo in code sample.
erictraut Dec 13, 2024
e13dbbe
Update docs/spec/overload.rst
erictraut Dec 16, 2024
eed0815
Merge branch 'main' into overloads
carljm Jan 8, 2025
57495db
(very) initial steps on conformance tests
carljm Jan 9, 2025
27f1c79
fix abstractmethod without implementation check
carljm Jan 10, 2025
535075f
split overloads_invalid.py from overloads_basic.py
carljm Jan 10, 2025
8875a4a
add test for final with overload
carljm Jan 10, 2025
cb04dd6
add tests for correct usage of override with an overload
carljm Jan 10, 2025
5eabe53
add test for wrong use of override with overload
carljm Jan 10, 2025
484b03c
rename overloads_invalid to overloads_definitions
carljm Jan 10, 2025
ac3b70e
add support for stub test files, add overloads_definitions_stub.pyi
carljm Jan 10, 2025
87377ed
add initial overloads_consistency tests
carljm Jan 10, 2025
f7bf384
add tests for mixed async-def
carljm Jan 11, 2025
4936ac1
add tests for signature-transforming decorators
carljm Jan 11, 2025
e0e0b8a
add test for partially overlapping overloads
carljm Jan 11, 2025
cc748d3
add test for fully overlapping overloads
carljm Jan 11, 2025
17d3e15
add tests for step-1 of overload evaluation
carljm Jan 11, 2025
02f0652
add tests for steps 2 and 3 of overload evaluation
carljm Jan 11, 2025
f5bee93
add tests for bool expansion (no checker does this)
carljm Jan 11, 2025
169fa58
add tests for enum and tuple expansion
carljm Jan 11, 2025
c041484
add test for type[A | B] expansion
carljm Jan 11, 2025
c10a72d
add test for step 4 in overload matching
carljm Jan 11, 2025
8a98eae
add test for steps 5/6 in overload matching
carljm Jan 11, 2025
5d22e8d
no expectation of return type if there are call errors
carljm Jan 13, 2025
98f36e8
improve variadic test to not use overlapping overloads
carljm Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading