Files
openide/python/testData/highlighting/noErrorMetaClassOverloadBitwiseOrOperator.py
andrey.matveev f84e2d8452 PY-49697 Fix false positive for metaclass overloaded __or__
(cherry picked from commit d8e327da30c0b359c8eb3b890c72c41a9c3c4444)

IJ-MR-11817

GitOrigin-RevId: a21ecb8b66e3510abc4401ac351789a858482463
2021-07-16 11:34:14 +00:00

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)