11import datetime
22import zipimport
33from _typeshed import Incomplete , SupportsItems
4+ from builtins import _ClassInfo
45from collections .abc import Generator , Iterable , MutableMapping
56from os import PathLike
67from time import _TimeTuple , struct_time
78from types import TracebackType
89from typing import AnyStr , Final , Literal , TypeVar , overload , type_check_only
10+ from typing_extensions import TypeIs
911from urllib .request import _UrlopenRet
1012
1113from reportlab .lib .rltempfile import get_rl_tempdir as get_rl_tempdir , get_rl_tempfile as get_rl_tempfile
@@ -31,10 +33,10 @@ __UNSET__: Final[_UNSET_]
3133isPyPy : bool
3234
3335def isFunction (v : object ) -> bool : ...
34- def isMethod (v : object , mt = ...) -> bool : ...
36+ def isMethod (v : object , mt : type = ...) -> bool : ...
3537def isModule (v : object ) -> bool : ...
36- def isSeq (v : object , _st = ...) -> bool : ...
37- def isNative (v : object ) -> bool : ...
38+ def isSeq (v : object , _st : _ClassInfo = ...) -> bool : ...
39+ def isNative (v : object ) -> TypeIs [ str ] : ...
3840
3941strTypes : tuple [type [str ], type [bytes ]]
4042
@@ -43,10 +45,10 @@ def asUnicode(v: str | bytes, enc: str = "utf8") -> str: ...
4345def asUnicodeEx (v : str | bytes , enc : str = "utf8" ) -> str : ...
4446def asNative (v : str | bytes , enc : str = "utf8" ) -> str : ...
4547def int2Byte (i : int ) -> bytes : ...
46- def isStr (v : object ) -> bool : ...
47- def isBytes (v : object ) -> bool : ...
48- def isUnicode (v : object ) -> bool : ...
49- def isClass (v : object ) -> bool : ...
48+ def isStr (v : object ) -> TypeIs [ str | bytes ] : ...
49+ def isBytes (v : object ) -> TypeIs [ bytes ] : ...
50+ def isUnicode (v : object ) -> TypeIs [ str ] : ...
51+ def isClass (v : object ) -> TypeIs [ type ] : ...
5052def isNonPrimitiveInstance (x : object ) -> bool : ...
5153def instantiated (v : object ) -> bool : ...
5254def bytestr (x : object , enc : str = "utf8" ) -> bytes : ...
0 commit comments