Runtime final
runtime_final
C = TypeVar('C', bound=type)
module-attribute
runtime_final(cls: C) -> C
Prevent a class from being subclassed at runtime.
Source code in xdsl/utils/runtime_final.py
14 15 16 17 18 19 20 21 22 23 | |
is_runtime_final(cls: type) -> bool
Check if a class is final.
Source code in xdsl/utils/runtime_final.py
26 27 28 | |