mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Redefined dataclasses.KW_ONLY (#5826)
Redefined dataclasses.KW_ONLY so it's a type alias rather than a class instance. Class instances are illegal to use within a type annotation.
This commit is contained in:
@@ -37,6 +37,7 @@ collections.abc.KeysView.__reversed__
|
||||
collections.abc.ValuesView.__reversed__
|
||||
contextvars.Context.__init__ # Default C __init__ signature is wrong
|
||||
dataclasses.field
|
||||
dataclasses.KW_ONLY
|
||||
dummy_threading
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
|
||||
Reference in New Issue
Block a user