mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
8 lines
163 B
Python
8 lines
163 B
Python
from pkpy import is_user_defined_type
|
|
|
|
class A:
|
|
pass
|
|
|
|
assert is_user_defined_type(A)
|
|
assert not is_user_defined_type(int)
|
|
assert not is_user_defined_type(dict) |