Searched refs:_get_protocol_attrs (Results 1 – 6 of 6) sorted by relevance
/external/python/setuptools/setuptools/_vendor/ |
D | typing_extensions.py | 487 def _get_protocol_attrs(cls): function 507 return all(callable(getattr(cls, attr, None)) for attr in _get_protocol_attrs(cls)) 535 for attr in _get_protocol_attrs(cls)): 666 for attr in _get_protocol_attrs(cls): 801 for attr in _get_protocol_attrs(cls): 830 for attr in _get_protocol_attrs(self)):
|
/external/python/typing/typing_extensions/src/ |
D | typing_extensions.py | 289 def _get_protocol_attrs(cls): function 309 return all(callable(getattr(cls, attr, None)) for attr in _get_protocol_attrs(cls)) 336 for attr in _get_protocol_attrs(cls)): 467 for attr in _get_protocol_attrs(cls):
|
D | test_typing_extensions.py | 1488 self.assertEqual(typing_extensions._get_protocol_attrs(P), {'meth'}) 1489 self.assertEqual(typing_extensions._get_protocol_attrs(PR), {'x'}) 1490 self.assertEqual(frozenset(typing_extensions._get_protocol_attrs(PG)),
|
/external/python/typing/typing_extensions/ |
D | __init__.py | 558 def _get_protocol_attrs(cls): function 578 return all(callable(getattr(cls, attr, None)) for attr in _get_protocol_attrs(cls)) 605 for attr in _get_protocol_attrs(cls)): 736 for attr in _get_protocol_attrs(cls): 871 for attr in _get_protocol_attrs(cls): 900 for attr in _get_protocol_attrs(self)):
|
/external/python/cpython3/Lib/ |
D | typing.py | 1407 def _get_protocol_attrs(cls): function 1426 return all(callable(getattr(cls, attr, None)) for attr in _get_protocol_attrs(cls)) 1509 for attr in _get_protocol_attrs(cls)): 1576 for attr in _get_protocol_attrs(cls):
|
/external/python/cpython3/Lib/test/ |
D | test_typing.py | 1487 self.assertEqual(typing._get_protocol_attrs(P), {'meth'}) 1488 self.assertEqual(typing._get_protocol_attrs(PR), {'x'}) 1489 self.assertEqual(frozenset(typing._get_protocol_attrs(PG)),
|