pocketpy/include/typings/inspect.pyi
2025-11-24 11:41:37 +08:00

6 lines
208 B
Python

def isgeneratorfunction(obj) -> bool: ...
def is_user_defined_type(t: type) -> bool:
"""Check if a type is user-defined.
This means the type was created by executing python `class` statement."""