Home
last modified time | relevance | path

Searched refs:_get_protocol_attrs (Results 1 – 6 of 6) sorted by relevance

/external/python/setuptools/setuptools/_vendor/
Dtyping_extensions.py487 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/
Dtyping_extensions.py289 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):
Dtest_typing_extensions.py1488 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__.py558 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/
Dtyping.py1407 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/
Dtest_typing.py1487 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)),