diff --git a/Lib/types.py b/Lib/types.py index 37ba4bb1f42e5d..735975be7f7db9 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -50,6 +50,11 @@ def _m(self): pass ModuleType = type(sys) +from abc import ABC +class _D(ABC): + pass +ABCData = type(_D._abc_impl) + try: raise TypeError except TypeError: diff --git a/Misc/NEWS.d/next/Library/2019-05-01-08-04-47.bpo-36764.Im4BRF.rst b/Misc/NEWS.d/next/Library/2019-05-01-08-04-47.bpo-36764.Im4BRF.rst new file mode 100644 index 00000000000000..6ec7297dacfe58 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-05-01-08-04-47.bpo-36764.Im4BRF.rst @@ -0,0 +1 @@ +Add ABCData type to types module. Contributed by Batuhan Taskaya. \ No newline at end of file