mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +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) |