mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
(cherry picked from commit d8e327da30c0b359c8eb3b890c72c41a9c3c4444) IJ-MR-11817 GitOrigin-RevId: a21ecb8b66e3510abc4401ac351789a858482463
15 lines
138 B
Python
15 lines
138 B
Python
class MetaA(type):
|
|
def __or__(self, other):
|
|
return 42
|
|
|
|
|
|
class A(metaclass=MetaA):
|
|
pass
|
|
|
|
|
|
class B:
|
|
pass
|
|
|
|
|
|
print(A | B)
|