HomeSort by relevance Sort by last modified time
    Searched refs:_Protocol (Results 1 - 2 of 2) sorted by null

  /external/python/cpython3/Lib/
typing.py 122 invalid_generic_forms = (Generic, _Protocol)
134 arg in (Generic, _Protocol)):
620 if self.__origin__ in (Generic, _Protocol):
621 # Can't subscript Generic[...] or _Protocol[...].
833 elif cls is _Protocol:
834 # _Protocol is internal at the moment, just skip the check
847 error = Generic in cls.__bases__ and cls.__name__ != '_Protocol'
    [all...]
  /external/python/cpython3/Lib/test/
test_typing.py 708 self.assertEqual(repr(typing._Protocol[T]), 'typing._Protocol[~T]')
    [all...]

Completed in 218 milliseconds