mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 02:19:18 +08:00
Add @disjoint_base decorator in the stdlib (#14599)
And fix some other new stubtest finds.
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
import sys
|
||||
from typing_extensions import Self, TypeAlias
|
||||
from typing_extensions import Self, TypeAlias, disjoint_base
|
||||
|
||||
# Actually Tuple[(int,) * 625]
|
||||
_State: TypeAlias = tuple[int, ...]
|
||||
|
||||
@disjoint_base
|
||||
class Random:
|
||||
if sys.version_info >= (3, 10):
|
||||
def __init__(self, seed: object = ..., /) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user