Openfisca-core

Latest version: v41.4.5

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

Scan your dependencies

Page 11 of 60

35.4.0

Technical changes

- Update dependencies (_as in 35.3.7_).
- Extend NumPy compatibility to v1.20 to support M1 processors.

- Make NumPy's type-checking compatible with 1.17.0+
- NumPy introduced their `typing` module since 1.20.0
- Previous type hints relying on `annotations` will henceforward no longer work
- This changes ensure that type hints are always legal for the last four minor NumPy versions

35.3.8

Bug fix

- Drop latest NumPy supported version to 1.18.x
- OpenFisca relies on MyPy for optional duck & static type checking
- When libraries do not implement their own types, MyPy provides stubs, or type sheds
- Thanks to `__future__.annotations`, those stubs or type sheds are casted to `typing.Any`
- Since 1.20.x, NumPy now provides their own type definitions
- The introduction of NumPy 1.20.x in 990 caused one major problem:
- It is general practice to do not import at runtime modules only used for typing purposes, thanks to the `typing.TYPE_CHEKING` variable
- The new `numpy.typing` module was being imported at runtime, rendering OpenFisca unusable to all users depending on previous versions of NumPy (1.20.x-)
- These changes revert 990 and solve 1009 and 1012

35.3.7

_Note: this version has been unpublished due to an issue introduced by NumPy upgrade. Please use 34.3.8 or a more recent version._

Technical changes

- Update dependencies.
- Extend NumPy compatibility to v1.20 to support M1 processors.

35.3.6

Technical changes

- In web_api tests, extract `test_client` to a fixture reusable by all the tests in the test suite.
- To mitigate possible performance issues, by default the fixture is initialised once per test module.
- This follows the same approach as [997](https://github.com/openfisca/openfisca-core/pull/997)

35.3.5

Technical changes

- In tests, extract `CountryTaxBenefitSystem` to a fixture reusable by all the tests in the test suite.
- It allows for a better reusability of test scenarios available to new contributors.
- To mitigate possible performance issues, by default the fixture is initialised once per test module.

35.3.4

Technical improvements

- Change logging.warning to warnings.warn to allow users of the package to hide them.

Page 11 of 60

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.