abc.abstractstaticmethod
Prev: abc.abstractproperty | Up: abc | Next: abc.get_cache_token
Rel: abc.ABC, abc.ABCMeta, abc.abstractclassmethod, abc.abstractmethod
Ref: docs.python.org — abc.abstractstaticmethod
Tags: #public #python3 #stdlib #abc
Import
import abc
from abc import abstractstaticmethod
Signature & Overview
abc.abstractstaticmethod(callable)
A decorator indicating abstract staticmethods.
Usage
from abc import ABC, abstractmethod
# Deprecated: stack @staticmethod above @abstractmethod instead
class Parser(ABC):
@staticmethod
@abstractmethod
def parse(raw: str): ...
Gotchas
- Deprecated since Python 3.3: Use
@staticmethodover@abstractmethod.
REPL Inspect
from abc import abstractstaticmethod
help(abstractstaticmethod)
Linked from
Related notes
- tuts/python3/stdlib_module/abc/abstractproperty Linked here; links to this page; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/get_cache_token Linked here; links to this page; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/ABC Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/ABCMeta Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/abstractclassmethod Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/abstractmethod Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/abc/update_abstractmethods shared tags: #abc, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib