mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 05:49:45 +08:00
Remove bare Incomplete annotations in third-party stubs (#11671)
This commit is contained in:
@@ -296,7 +296,7 @@ class Default(Typed[_T, _N]): # unused
|
||||
class Alias(Descriptor[Incomplete]):
|
||||
alias: str
|
||||
def __init__(self, alias: str) -> None: ...
|
||||
def __set__(self, instance: Serialisable | Strict, value: Incomplete) -> None: ...
|
||||
def __set__(self, instance: Serialisable | Strict, value) -> None: ...
|
||||
def __get__(self, instance: Serialisable | Strict, cls: Unused): ...
|
||||
|
||||
class MatchPattern(Descriptor[_P], Generic[_P, _N]):
|
||||
|
||||
@@ -22,7 +22,7 @@ class Percentage(MinMax[float, Incomplete]):
|
||||
pattern: str
|
||||
min: float
|
||||
max: float
|
||||
def __set__(self, instance: Serialisable | Strict, value: Incomplete) -> None: ...
|
||||
def __set__(self, instance: Serialisable | Strict, value) -> None: ...
|
||||
|
||||
class Extension(Serialisable):
|
||||
uri: String[Literal[False]]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from _typeshed import ConvertibleToInt, Incomplete, Unused
|
||||
from _typeshed import ConvertibleToInt, Unused
|
||||
from re import Pattern
|
||||
from typing import Final, Literal, overload
|
||||
from typing_extensions import Self
|
||||
@@ -22,7 +22,7 @@ class ColRange(Strict):
|
||||
@overload
|
||||
def __init__(self, range_string: None = None, *, min_col: str, max_col: str) -> None: ...
|
||||
@overload
|
||||
def __init__(self, range_string: Incomplete, min_col: Unused = None, max_col: Unused = None) -> None: ...
|
||||
def __init__(self, range_string, min_col: Unused = None, max_col: Unused = None) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class RowRange(Strict):
|
||||
@@ -31,7 +31,7 @@ class RowRange(Strict):
|
||||
@overload
|
||||
def __init__(self, range_string: None, min_row: ConvertibleToInt, max_row: ConvertibleToInt) -> None: ...
|
||||
@overload
|
||||
def __init__(self, range_string: Incomplete, min_row: Unused = None, max_row: Unused = None) -> None: ...
|
||||
def __init__(self, range_string, min_row: Unused = None, max_row: Unused = None) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class PrintTitles(Strict):
|
||||
|
||||
@@ -108,7 +108,7 @@ def tostring(
|
||||
doctype: str = ...,
|
||||
exclusive: bool = ...,
|
||||
with_comments: bool = ...,
|
||||
inclusive_ns_prefixes: Incomplete = ...,
|
||||
inclusive_ns_prefixes=...,
|
||||
) -> bytes: ...
|
||||
|
||||
# from xml.etree.ElementTree import iterparse
|
||||
|
||||
Reference in New Issue
Block a user