mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
This commit is contained in:
parent
4a686504eb
commit
2085bd0877
34 changed files with 126 additions and 261 deletions
|
@ -283,7 +283,7 @@ class _Final:
|
|||
|
||||
__slots__ = ('__weakref__',)
|
||||
|
||||
def __init_subclass__(self, *args, **kwds):
|
||||
def __init_subclass__(self, /, *args, **kwds):
|
||||
if '_root' not in kwds:
|
||||
raise TypeError("Cannot subclass special typing classes")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue