mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
8 lines
181 B
Python
8 lines
181 B
Python
def in_operator(x, y):
|
|
if type(y) == type:
|
|
if isinstance(x, y):
|
|
return True
|
|
# TODO: trait check
|
|
return False
|
|
else:
|
|
return x in y
|