mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 20:36:44 +08:00
Audit stdlib object annotations (#9519)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import sys
|
||||
from _ast import *
|
||||
from _typeshed import ReadableBuffer
|
||||
from _typeshed import ReadableBuffer, Unused
|
||||
from collections.abc import Iterator
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
@@ -9,7 +9,7 @@ from typing_extensions import Literal
|
||||
if sys.version_info >= (3, 8):
|
||||
class _ABC(type):
|
||||
if sys.version_info >= (3, 9):
|
||||
def __init__(cls, *args: object) -> None: ...
|
||||
def __init__(cls, *args: Unused) -> None: ...
|
||||
|
||||
class Num(Constant, metaclass=_ABC):
|
||||
value: int | float | complex
|
||||
|
||||
Reference in New Issue
Block a user