mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
14 lines
329 B
Python
14 lines
329 B
Python
from typing import Any
|
|
import sys
|
|
# Stubs for abc.
|
|
|
|
# Thesee definitions have special processing in type checker.
|
|
class ABCMeta(type):
|
|
def register(cls: "ABCMeta", subclass: Any) -> None: ...
|
|
abstractmethod = object()
|
|
abstractproperty = object()
|
|
|
|
if sys.version_info >= (3, 4):
|
|
class ABC(metaclass=ABCMeta):
|
|
pass
|