FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
gh-84644: Fix singledispatch annotation parsing by johnslavik · Pull Request #143465 · python/cpython · GitHub
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
gh-84644: Fix singledispatch annotation parsing
- #143465
#143465
Merged
encukou
merged 108 commits into
python:main
python/cpython:main
from
johnslavik:fix-singledispatch-annotation-parsing
johnslavik/cpython:fix-singledispatch-annotation-parsing
Copy head branch name to clipboard
Oct 21, 2026
Conversation
Commits
108
(108)
Checks
Files changed
Merged
gh-84644: Fix singledispatch annotation parsing
#143465
encukou
merged 108 commits into
python:main
python/cpython:main
from
johnslavik:fix-singledispatch-annotation-parsing
johnslavik/cpython:fix-singledispatch-annotation-parsing
Copy head branch name to clipboard
Commits
Commits on Jan 6, 2026
Resolve first positional param, required to be annotated
johnslavik
committed
d3d6e64
View commit details
Copy full SHA for d3d6e64
Browse repository at this point
Special-case strings for forward refs similarly to typing
johnslavik
committed
6ea2a4a
View commit details
Copy full SHA for 6ea2a4a
Browse repository at this point
Rename `ref_or_type` to `ref_or_typeform`
johnslavik
committed
0a39278
View commit details
Copy full SHA for 0a39278
Browse repository at this point
Add comment
johnslavik
committed
096fc3b
View commit details
Copy full SHA for 096fc3b
Browse repository at this point
Shorten error message string line
johnslavik
committed
c8a5cdc
View commit details
Copy full SHA for c8a5cdc
Browse repository at this point
Adjust formatting to functools style
johnslavik
committed
e1cde59
View commit details
Copy full SHA for e1cde59
Browse repository at this point
Normalize `None` to a type, strip annotations
johnslavik
committed
6bc698b
View commit details
Copy full SHA for 6bc698b
Browse repository at this point
Rename `ref_or_typeform` to `fwdref_or_typeform`
johnslavik
committed
4ef7c7c
View commit details
Copy full SHA for 4ef7c7c
Browse repository at this point
Rename `skip_first` to `skip_first_param`
johnslavik
committed
004c852
View commit details
Copy full SHA for 004c852
Browse repository at this point
Add news entry
johnslavik
committed
9bc1436
View commit details
Copy full SHA for 9bc1436
Browse repository at this point
Add GH-130827 test
johnslavik
committed
3115fd7
View commit details
Copy full SHA for 3115fd7
Browse repository at this point
Fix test
johnslavik
committed
f6c102f
View commit details
Copy full SHA for f6c102f
Browse repository at this point
Remove the `get_annotations` dance for now
johnslavik
committed
7968570
View commit details
Copy full SHA for 7968570
Browse repository at this point
Commits on Jan 7, 2026
Fix incorrect `regster()` calls in `TestSingleDispatch.test_method_signatures`
Show description for a808a1e
johnslavik
committed
a808a1e
View commit details
Copy full SHA for a808a1e
Browse repository at this point
Fix string signatures accordingly
johnslavik
committed
69b9978
View commit details
Copy full SHA for 69b9978
Browse repository at this point
Raise exception if positional argument not found
johnslavik
committed
ebdb68d
View commit details
Copy full SHA for ebdb68d
Browse repository at this point
Break the exception chain
johnslavik
committed
8d86f9e
View commit details
Copy full SHA for 8d86f9e
Browse repository at this point
Support all callables
johnslavik
committed
82616f9
View commit details
Copy full SHA for 82616f9
Browse repository at this point
Clarify comment
johnslavik
committed
c9a1f1a
View commit details
Copy full SHA for c9a1f1a
Browse repository at this point
Fiat lux, inline validation
johnslavik
committed
e878207
View commit details
Copy full SHA for e878207
Browse repository at this point
Add more test cases (mainly wrappers)
johnslavik
committed
d3240a3
View commit details
Copy full SHA for d3240a3
Browse repository at this point
More comments!
johnslavik
committed
9240b0d
View commit details
Copy full SHA for 9240b0d
Browse repository at this point
Less history pollution
johnslavik
committed
f6ccb97
View commit details
Copy full SHA for f6ccb97
Browse repository at this point
Document `_get_positional_param`
johnslavik
committed
6642321
View commit details
Copy full SHA for 6642321
Browse repository at this point
Better comments!
johnslavik
committed
0eaaa5b
View commit details
Copy full SHA for 0eaaa5b
Browse repository at this point
Shorten a comment
johnslavik
committed
345b7e9
View commit details
Copy full SHA for 345b7e9
Browse repository at this point
Rephrase the fallback path comment
johnslavik
committed
8a46f3f
View commit details
Copy full SHA for 8a46f3f
Browse repository at this point
Improve the error message when missing an annotation
johnslavik
committed
16f83ee
View commit details
Copy full SHA for 16f83ee
Browse repository at this point
Correct the docstring
johnslavik
committed
552daaf
View commit details
Copy full SHA for 552daaf
Browse repository at this point
Rephrase the documentation again
johnslavik
committed
113cc29
View commit details
Copy full SHA for 113cc29
Browse repository at this point
Rename the function to `_get_dispatch_param`
johnslavik
committed
7c1bcea
View commit details
Copy full SHA for 7c1bcea
Browse repository at this point
Rewrite the news entry using precise language
johnslavik
committed
444425c
View commit details
Copy full SHA for 444425c
Browse repository at this point
Add a test for positional-only parameter
johnslavik
committed
9b26fb1
View commit details
Copy full SHA for 9b26fb1
Browse repository at this point
Add a mixed parameter types test case
johnslavik
committed
17dfb36
View commit details
Copy full SHA for 17dfb36
Browse repository at this point
Do not break exception chain unnecessarily
johnslavik
committed
fbce76d
View commit details
Copy full SHA for fbce76d
Browse repository at this point
Improve the docstring
johnslavik
committed
44b8bba
View commit details
Copy full SHA for 44b8bba
Browse repository at this point
Add precedent case for GH-84644
johnslavik
committed
ec01821
View commit details
Copy full SHA for ec01821
Browse repository at this point
Fix GH-84644 test
johnslavik
authored
57faa34
View commit details
Copy full SHA for 57faa34
Browse repository at this point
Reword the documentation of `_get_dispatch_param`
johnslavik
authored
e4fb514
View commit details
Copy full SHA for e4fb514
Browse repository at this point
Merge GH-130827 test into `test_method_type_ann_register`
johnslavik
committed
57965a9
View commit details
Copy full SHA for 57965a9
Browse repository at this point
Add case this PR broke -- registering bound methods
johnslavik
committed
eadc38f
View commit details
Copy full SHA for eadc38f
Browse repository at this point
Add bound methods to slow path
johnslavik
committed
682c41e
View commit details
Copy full SHA for 682c41e
Browse repository at this point
Optimize instance checks in the fast path
johnslavik
committed
c406755
View commit details
Copy full SHA for c406755
Browse repository at this point
Use a match statement instead of a for loop
johnslavik
committed
e238e6a
View commit details
Copy full SHA for e238e6a
Browse repository at this point
Rewrite to a try-except
johnslavik
committed
1e61429
View commit details
Copy full SHA for 1e61429
Browse repository at this point
Improve comment
johnslavik
committed
19458fc
View commit details
Copy full SHA for 19458fc
Browse repository at this point
Add more bound method tests
johnslavik
committed
6390a82
View commit details
Copy full SHA for 6390a82
Browse repository at this point
Reuse one instance of test class
johnslavik
committed
3e33040
View commit details
Copy full SHA for 3e33040
Browse repository at this point
Test instance validity in bound method tests
johnslavik
committed
c50d344
View commit details
Copy full SHA for c50d344
Browse repository at this point
Tests and fixes for staticmethod
johnslavik
committed
32910f3
View commit details
Copy full SHA for 32910f3
Browse repository at this point
Add more tests for classmethod
johnslavik
committed
4283fba
View commit details
Copy full SHA for 4283fba
Browse repository at this point
Commits on Jan 8, 2026
Disambiguate a comment
johnslavik
committed
17b5088
View commit details
Copy full SHA for 17b5088
Browse repository at this point
Always respect descriptors, fallback to assumptions on function-like objects
johnslavik
committed
cdb7cca
View commit details
Copy full SHA for cdb7cca
Browse repository at this point
Add more comments
johnslavik
committed
62088c7
View commit details
Copy full SHA for 62088c7
Browse repository at this point
Specialcase bound methods in singledispatchmethods
Show description for c497857
johnslavik
committed
c497857
View commit details
Copy full SHA for c497857
Browse repository at this point
Finalize the logic
johnslavik
committed
0f75d98
View commit details
Copy full SHA for 0f75d98
Browse repository at this point
Crystalize the decision tree
johnslavik
committed
8350e71
View commit details
Copy full SHA for 8350e71
Browse repository at this point
Fix comment
johnslavik
committed
50c0e64
View commit details
Copy full SHA for 50c0e64
Browse repository at this point
Better comments
johnslavik
committed
052c2fd
View commit details
Copy full SHA for 052c2fd
Browse repository at this point
Fiat lux
johnslavik
committed
30994eb
View commit details
Copy full SHA for 30994eb
Browse repository at this point
Rename function to `_get_singledispatch_annotated_param`
johnslavik
committed
3edad44
View commit details
Copy full SHA for 3edad44
Browse repository at this point
Disambiguate comment
johnslavik
committed
fbc205e
View commit details
Copy full SHA for fbc205e
Browse repository at this point
More comments
johnslavik
committed
b691969
View commit details
Copy full SHA for b691969
Browse repository at this point
Add more missing tests
johnslavik
committed
0859bc0
View commit details
Copy full SHA for 0859bc0
Browse repository at this point
Cast the `idx` to an integer explicitly
Show description for 7ac8275
johnslavik
and
JelleZijlstra
authored
7ac8275
View commit details
Copy full SHA for 7ac8275
Browse repository at this point
Check param kinds by name (code review)
johnslavik
committed
fbe00f8
View commit details
Copy full SHA for fbe00f8
Browse repository at this point
Minime the try-except
johnslavik
committed
7ada2b0
View commit details
Copy full SHA for 7ada2b0
Browse repository at this point
Remove all new tests
johnslavik
committed
ac2f5a2
View commit details
Copy full SHA for ac2f5a2
Browse repository at this point
Add previously failing tests only
johnslavik
committed
ba46e43
View commit details
Copy full SHA for ba46e43
Browse repository at this point
Commits on Jan 12, 2026
Merge branch 'main' into fix-singledispatch-annotation-parsing
Show description for 3995e79
johnslavik
committed
3995e79
View commit details
Copy full SHA for 3995e79
Browse repository at this point
Commits on Jan 19, 2026
Use imperative form in the docstring
Show description for 48d1bde
johnslavik
and
jaraco
authored
48d1bde
View commit details
Copy full SHA for 48d1bde
Browse repository at this point
Commits on Jan 20, 2026
Raise in `_get_singledispatch_annotated_param`
Show description for fc5df46
johnslavik
and
jaraco
committed
fc5df46
View commit details
Copy full SHA for fc5df46
Browse repository at this point
Rename the ugly `_inside_dispatchmethod` to `__role__`
johnslavik
committed
7fcf4d5
View commit details
Copy full SHA for 7fcf4d5
Browse repository at this point
Hide private params from `.register` using `__text_signature__`
johnslavik
committed
f7ec61d
View commit details
Copy full SHA for f7ec61d
Browse repository at this point
Remove comments that are sorta obvious
johnslavik
committed
946ccb8
View commit details
Copy full SHA for 946ccb8
Browse repository at this point
Make the private helper tighter
johnslavik
committed
2d1180a
View commit details
Copy full SHA for 2d1180a
Browse repository at this point
Condense fast path comment
johnslavik
committed
cd10e91
View commit details
Copy full SHA for cd10e91
Browse repository at this point
Bring back comments but make them actually helpful
johnslavik
committed
0a622fb
View commit details
Copy full SHA for 0a622fb
Browse repository at this point
Another comment improvement
johnslavik
committed
9b2d20d
View commit details
Copy full SHA for 9b2d20d
Browse repository at this point
Fix incorrect comment
johnslavik
committed
9191a22
View commit details
Copy full SHA for 9191a22
Browse repository at this point
Restore old tests
johnslavik
committed
ef74667
View commit details
Copy full SHA for ef74667
Browse repository at this point
Rework registration tests
johnslavik
committed
b55de76
View commit details
Copy full SHA for b55de76
Browse repository at this point
Use stars for referring to param names
johnslavik
committed
9977251
View commit details
Copy full SHA for 9977251
Browse repository at this point
Use `__role__` name only in the `register()` signature
johnslavik
committed
d282c9a
View commit details
Copy full SHA for d282c9a
Browse repository at this point
Denote the issues covered
johnslavik
committed
4c43a9c
View commit details
Copy full SHA for 4c43a9c
Browse repository at this point
Add regrtest from @pR0Ps
Show description for 3b5a410
pR0Ps
and
johnslavik
committed
3b5a410
View commit details
Copy full SHA for 3b5a410
Browse repository at this point
Somewhat better comment
johnslavik
committed
f6ce233
View commit details
Copy full SHA for f6ce233
Browse repository at this point
Commits on Jan 22, 2026
Merge branch 'main' into fix-singledispatch-annotation-parsing
johnslavik
authored
97a8515
View commit details
Copy full SHA for 97a8515
Browse repository at this point
Apply suggestion from @johnslavik
johnslavik
authored
62ea333
View commit details
Copy full SHA for 62ea333
Browse repository at this point
Commits on Feb 8, 2026
Final optional refinements
johnslavik
committed
f0097c4
View commit details
Copy full SHA for f0097c4
Browse repository at this point
Commits on Feb 11, 2026
Bring back `role` and `__role__`
johnslavik
committed
4e6a003
View commit details
Copy full SHA for 4e6a003
Browse repository at this point
Commits on Mar 1, 2026
Fix code line length in `_get_singledispatch_annotated_param`
johnslavik
committed
2d70e22
View commit details
Copy full SHA for 2d70e22
Browse repository at this point
Rename `__role__` to `_role` and make it kw-only
johnslavik
committed
c716b57
View commit details
Copy full SHA for c716b57
Browse repository at this point
Fix missing param default in `__text_signature__`
johnslavik
committed
a28e9af
View commit details
Copy full SHA for a28e9af
Browse repository at this point
Change wording in news entry patch attribution
Show description for cfb9194
johnslavik
and
picnixz
authored
cfb9194
View commit details
Copy full SHA for cfb9194
Browse repository at this point
Rephrase the entire news entry
johnslavik
authored
b03891f
View commit details
Copy full SHA for b03891f
Browse repository at this point
Finish up news entry corrections
johnslavik
committed
4c8e818
View commit details
Copy full SHA for 4c8e818
Browse repository at this point
Apply more consistent formatting
johnslavik
committed
7fa9315
View commit details
Copy full SHA for 7fa9315
Browse repository at this point
...Actually readable formatting
johnslavik
committed
cee055a
View commit details
Copy full SHA for cee055a
Browse repository at this point
Merge main to avoid conflict in the "What's New" entry
johnslavik
committed
4db216f
View commit details
Copy full SHA for 4db216f
Browse repository at this point
Rephrase the news entry again
johnslavik
committed
cc2bcc7
View commit details
Copy full SHA for cc2bcc7
Browse repository at this point
Add a what's new entry
Show description for 371bff5
johnslavik
committed
371bff5
View commit details
Copy full SHA for 371bff5
Browse repository at this point
Commits on Jul 20, 2026
Deprecate singledispatch registration by return annotation
johnslavik
committed
a5a79ad
View commit details
Copy full SHA for a5a79ad
Browse repository at this point
Merge branch 'main' into fix-singledispatch-annotation-parsing
johnslavik
committed
3dadb56
View commit details
Copy full SHA for 3dadb56
Browse repository at this point
Commits on Jul 24, 2026
Make warning clearer
johnslavik
committed
0d0702e
View commit details
Copy full SHA for 0d0702e
Browse repository at this point
Use `__file__` for path skipping
johnslavik
committed
b0ae4d1
View commit details
Copy full SHA for b0ae4d1
Browse repository at this point
Commits on Oct 19, 2026
Address the review comments
johnslavik
committed
bd65350
View commit details
Copy full SHA for bd65350
Browse repository at this point
Commits on Oct 20, 2026
Dedupe docs
johnslavik
committed
37cd5a3
View commit details
Copy full SHA for 37cd5a3
Browse repository at this point
Back
|
FazBrowse Home
|
New Git URL