Pyfields

Latest version: v1.7.2

Safety actively analyzes 621173 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

1.7.2

- Fixed `TypeError: Neither typeguard not pytypes is installed` even with `typeguard` installed.
Fixed [91] (https://github.com/smarie/python-pyfields/issues/91)

See [documentation page](https://smarie.github.io/python-pyfields/changelog) for details.

1.7.1

- Fixed `TypeError: check_type() takes 2 positional arguments but 3 were given` triggering erroneous `FieldTypeError`
when `typeguard>=3.0.0` is used. Fixed [87](https://github.com/smarie/python-pyfields/issues/87)

See [documentation page](https://smarie.github.io/python-pyfields/changelog) for details.

1.7.0

- `autofields` and `autoclass` now raise an error when a field definition can not be valid, because the default value can not be deep-copied. This will help users detect issues such as [84](https://github.com/smarie/python-pyfields/issues/84) earlier. Implementation is done through a new `autocheck` option in the `copy_value` factory.

- `autofields` and `autoclass` now provide an `exclude` (resp. `af_exclude`) list, to list names for fields that should not be created. By default this contains a reserved name from `abc.ABCMeta`, for convenience. Fixes [84](https://github.com/smarie/python-pyfields/issues/84).

See [documentation page](https://smarie.github.io/python-pyfields/changelog.html) for details.

1.6.2

- This is a technical release with no code change, to validate the new Github Actions workflow.

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.6.1

- Fixed an issue with `autofields` (and therefore `autoclass` too) where a field would be mistakenly recreated on a subclass when that subclass does not define type hints while the parent class defines type hints. Fixes [81](https://github.com/smarie/python-pyfields/issues/81)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

1.6.0

- Copied the relevant contents from `autoclass` so as to get rid of the dependency. Since we are in a `pyfields` context there were many things that could be dropped and remaining code could be easily copied over. Also took this opportunity to replace the dict view with a `to_dict`/`from_dict` pair of methods, this seems less intrusive in the class design. Finally the parameter names have been simplified, see [API reference](./api_reference.mdautoclass) for details. Fixes [79](https://github.com/smarie/python-pyfields/issues/79)

See [documentation page](https://smarie.github.io/python-pyfields/changelog/) for details.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.