File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -328,23 +328,11 @@ def __or__(self, other):
328328 if isinstance (other , LazyImport ):
329329 other_type = other ._load ()
330330 elif isinstance (other , tuple ):
331- # Handle chaining: A | (B, C) -> (A, B, C)
332331 return (self_type ,) + other
333332 else :
334333 other_type = other
335334 return (self_type , other_type )
336335
337- def __ror__ (self , other ):
338- self_type = self ._load ()
339- if isinstance (other , LazyImport ):
340- other_type = other ._load ()
341- elif isinstance (other , tuple ):
342- # Handle chaining: (A, B) | C -> (A, B, C)
343- return other + (self_type ,)
344- else :
345- other_type = other
346- return (other_type , self_type )
347-
348336 def __instancecheck__ (self , instance ):
349337 return isinstance (instance , self ._load ())
350338
You can’t perform that action at this time.
0 commit comments