- migrate from unittest to pytest
- exclude tests from package deployment
- add an optional
messageargument to@deprecateddecorator
- fixed validation error message in MinLength validator
- removed unused scripts
- updated dependencies
- updated documentation
- removed workaround for Python version
3.14.0in@in_subprocessdecorator
- improve robustness of
WithDecoratedMethods
- added support for Python 3.14
- updated dependencies
- remove start method for
multiprocessand use default again (which isfork)
- remove support for deprecated
typing.ByteString - fix
WithDecoratedMethods - use start method
spawnformultiprocess
- fix
GenericMixin
- fixed
setuptoolsdeprecation warnings - delete unused scripts
- migrated from
setup.pytopyproject.toml
- improve
GenericMixinsuch that it also finds bound type variables in parent classes
- added type check support for
functools.partial - update dependencies
- added Python 3.13 to CI
- add more parameters to
transformationincreate_decoratorto make it more flexible
- add
transformationparameter tocreate_decoratorto make adding custom behavior easier
- Remove
inspect.getsource()call from@overrides
- Close
multiprocess.connection.Connectioncorrectly in@in_subprocessdecorator - Updated dependencies
- added
retry_func()function
- improve implementation of
copy_with()
- bugfix
@pedantictogether withtyping.Protocol
- bugfix
@pedantictogether withtyping.Protocol
- make
@pedanticwork withtyping.Protocol(at least do not raise a false-positive error)
- add
retrydecorator - update example in
README.md
- improve API of
WithDecoratedMethods.get_decorated_functions()
- fix bug in
GenericMixinthat appears when using multiple inheritance
- add Mixin
WithDecoratedMethodsthat makes it easy to find out which method is decorated with which specific parametrized decorator - drop support for Python 3.9 and 3.10
- fix
GenericMixinbug that appears when using inheritance
- improve error message for the case that you call
GenericMixin.type_var()in the__init__()method.
- bump
flaskandwerkzeugto version3.0.0
- allow type hints like
list[int], dict[str, float], ... - drop support for Python 3.8
- added
@safe_contextmanagerand@safe_async_contextmanagerdecorators - drop support for Python 3.7
- improve implementation of
@in_subprocessdecorator
- fix issue that appears when using
slots=Truein thefrozen_dataclassdecorator
- added release notes to GitHub releases (CI)
- fix a typo in the docs here
- allow async functions for
@in_subprocess - use Pipe instead of Queue for subprocess communication
- Fix type checking bug with callables
- Fix deployment (CI)
- Added support for Python 3.11:
typing.Selftyping.Nevertyping.LiteralStringtyping.TypeVarTupleis not supported yet, but it least it does not lead to errors ;)
- Fix type checking of
typing.NoReturn - Fix
@pedantic_classbehavior with@classmethods - Changed Ubuntu version in CI from 20 to 22
- Added arguments
slotsandkw_onlytofrozen_dataclass
- fix
ImportErrorof optionalmultiprocesspackage - fix typo in
README.md - added more test for
@in_subprocessdecorator - improve resolving of
typing.ForwardRefs
- added
GenericMixin - added
@in_subprocessdecorator
- bugfix in type checking logic
- fix tests
- bugfix in type checking logic concerning
typing.Awaitableandtyping.Coroutinewith return typeUnionType
- bugfix in type checking logic concerning
typing.Awaitableandtyping.Coroutinewith return typeNone
- fix test coverage
- bugfix in type checking logic concerning
typing.Awaitableandtyping.Coroutine
- fix type hints
- use
kw_only=Trueinfrozen_dataclassandfrozen_type_safe_dataclass
- fix inheritance bug in
frozen_dataclassandfrozen_type_safe_dataclass - added more badges to
README.md
- Added method
deep_copy_with()to dataclasses generated byfrozen_dataclassandfrozen_type_safe_dataclass - Fix bug in
copy_with()that occurred when using nested dataclasses
- Added the
frozen_type_safe_dataclassdecorator - Added parameters to
frozen_dataclass:type_safewith defaultFalse: IfTrueit ensured that all fields have a value that matches the given data type at any time.orderwith defaultFalse: IfTruethe comparison methods are generated for the class.
- Fix link in
README.md - update dependencies in
requirements.txt - fix some typos in docstrings and comments
- make some private methods public
- minor code cleanups
- Add decorator
frozen_dataclasswhich adds the methodscopy_with()andvalidate_types()to the often useddataclass(frozen=True).
- Added remarks to
README.mdconcerning code compilation - Exclude lines to fix test coverage
- Fix
NameError: name 'Docstring' is not defined - Fix type hint of
raw_doc() - Fix
create_pdoc.sh
- Remove the dependency docstring-parser dependency and make it optional
- Bugfix in
IsUuidvalidator: Now handleNoneandintvalues correctly.
- Added
GenericDeserializerandDeserializableas proposed in #55 - Added
validate_param()instance method toValidator
- Breaking: Drop support for Python 3.6.
- Make the
pedanticdecorator compatible with Python 3.10. - Added changelog
- CI: drop Python 3.6 and add Python 3.10 and 3.11