Loading README.md +6 −9 Original line number Diff line number Diff line # Safeclass # Python Utilities ## About This repository contains several dataclass-like decorators. Their goal being to make the creation of immutable or partially immutable classes easier. These classes also use slots by default, making them more memory efficient. This repository contains several Python utilities I created. These include a safeclass, an alternative to dataclass, and support for tail call optimization. ## Mypy ## Typing These safeclasses, as I call them, try to comply with mypy as much as reasonably possible. For this reason, when using the various decorators, the created class needs to inherit from a class. Programming decorators in Python is notoriously difficult to type. The end goal is to make these decorators pass strict mypy checks. So far, mypy might scream. Loading
README.md +6 −9 Original line number Diff line number Diff line # Safeclass # Python Utilities ## About This repository contains several dataclass-like decorators. Their goal being to make the creation of immutable or partially immutable classes easier. These classes also use slots by default, making them more memory efficient. This repository contains several Python utilities I created. These include a safeclass, an alternative to dataclass, and support for tail call optimization. ## Mypy ## Typing These safeclasses, as I call them, try to comply with mypy as much as reasonably possible. For this reason, when using the various decorators, the created class needs to inherit from a class. Programming decorators in Python is notoriously difficult to type. The end goal is to make these decorators pass strict mypy checks. So far, mypy might scream.