summaryrefslogtreecommitdiff
path: root/pint
Commit message (Collapse)AuthorAgeFilesLines
* Improved documentation about extending the registryHernan Grecco2023-05-161-9/+14
|
* Python's 3.9 compatible typing annotationsHernan Grecco2023-05-1426-136/+167
|
* Merge pull request #1777 from coroa/extend-upcast-type-namesHernan Grecco2023-05-121-2/+2
|\ | | | | Extend upcast_type_names with fully qualified names
| * Fix upcast_type_namesJonas Hoersch2023-05-121-2/+2
| |
* | Mark xfail certain ↵Hernan Grecco2023-05-121-1/+5
|/ | | | test_compat_downcast.py::test_array_quantity_creation_by_multiplication
* Moved Pint downtream ProjectsHernan Grecco2023-05-121-17/+0
|
* Started downstream status pageHernan Grecco2023-05-121-0/+17
|
* SharedObject module should beHernan Grecco2023-05-111-1/+1
|
* Better SharedRegistryObjects creationHernan Grecco2023-05-113-6/+17
|
* Remove unnecessary import in utilHernan Grecco2023-05-111-2/+2
|
* Fix imports for Python 3.9Hernan Grecco2023-05-112-5/+7
|
* More typing improvementsHernan Grecco2023-05-113-8/+9
|
* Fix ruff fuck-upHernan Grecco2023-05-091-6/+7
|
* Typing related fixesHernan Grecco2023-05-0916-107/+77
|
* Remove deprecated usage in docs and fix introduced bug during refactoring.Hernan Grecco2023-05-051-2/+1
|
* Remove conversion to string in DimensionalityErrorHernan Grecco2023-05-051-1/+1
|
* Fixed Subscripted generics cannot be used with class and instance checksHernan Grecco2023-05-051-1/+1
|
* Large commit to make Pint more typing friendlyHernan Grecco2023-05-0540-833/+1368
| | | | | | | | | | | | | | | | | | | | | In this very large commit we tackle a few aspects of Pint that makes it difficult to do static typing. 1. Dynamic classes became static: Quantity and Unit are now (for the most part) static classes with a static inheritance. This allows mypy/pylance and other type checker to properly inspect them. 2. Added types through out all the code. (WIP) 3. Refactor minor parts of the code to make it more typing homogeneous. Catch a few potential bugs in the way. 4. Add several TODOs that need to be addressed in 0.23 5. Moved some group and system and context code out of the PlainRegistry 6. Moved certain specialized methods out of the PlainRegistry.
* Fix 3.9 support. TypeAlias is supported in 3.10+Hernan Grecco2023-05-011-3/+6
|
* Fix 3.9 support. Protocol do not support |Hernan Grecco2023-05-011-2/+3
|
* Run pyupgrade --py39-plusHernan Grecco2023-05-019-10/+14
|
* Typing improvementsHernan Grecco2023-05-0133-490/+905
| | | | | | | | | | | While there is still a lot of work to do (mainly in Registry, Quantity, Unit), this large PR makes several changes all around the code. There has not been any intended functional change, but certain typing improvements required code minor code refactoring to streamline input and output types of functions. An important experimental idea is the PintScalar and PintArray protocols, and Magnitude type. This is to overcome the lack of a proper numerical hierarchy in Python.
* Reworked the Quantity, Unit, Measurement, Group and System class to be ↵Hernan Grecco2023-04-3017-89/+80
| | | | static to ease with typing
* Run pyupgrade --py39-plus in all files except _vendor (again)Hernan Grecco2023-04-294-8/+8
|
* Run refurb --python-version 3.9 in codeHernan Grecco2023-04-2915-107/+101
|
* Run refurb --python-version 3.9 in pint/testsuiteHernan Grecco2023-04-2916-65/+60
|
* Run pyupgrade --py39-plus in all files except _vendorHernan Grecco2023-04-2938-235/+205
|
* Remove deprecated use_decimalHernan Grecco2023-04-293-39/+5
|
* Apply NEP-29: Pint now requires Python 3.9+ and NumPy 1.21+Hernan Grecco2023-04-291-3/+1
|
* fix(upcast): Fix upcast functionJules Chéron2023-04-291-7/+7
|
* Merge pull request #1594 from dopplershift/fix-trapz-tempHernan Grecco2023-04-292-3/+120
|\ | | | | Properly handle offset units for trapz
| * Fix up dot/cross wrapper for non-multiplicative unitsRyan May2023-04-272-2/+67
| |
| * Properly handle offset units for trapz (Fixes #1593)Ryan May2023-04-272-2/+54
| |
* | Merge pull request #1760 from jules-ch/test-all-closeHernan Grecco2023-04-291-0/+9
|\ \ | | | | | | fix(test): Add tests for all close with nan and atol default
| * | fix(test): Add tests for all close with nan and atol defaultJules Chéron2023-04-291-0/+9
| |/
* | Merge pull request #1608 from dopplershift/fix-1584Hernan Grecco2023-04-292-2/+23
|\ \ | | | | | | Fix setitem with a masked array with multiple items (Fixes #1584)
| * \ Merge branch 'master' into fix-1584Ryan May2022-11-2850-1539/+3598
| |\ \
| * | | Fix setitem with a masked array with multiple items (Fixes #1584)Ryan May2022-10-142-2/+23
| | | | | | | | | | | | | | | | This was incorrectly passing through some non-masked values.
* | | | Honor non_int_type when dividing (fix bug).Hernan Grecco2023-04-281-2/+2
| | | |
* | | | Honor non_int_type when dividing.Hernan Grecco2023-04-282-3/+13
| |_|/ |/| |
* | | Honor non_int_type when a unit without a magnitude is given as string.Hernan Grecco2023-04-272-3/+15
| | | | | | | | | | | | Close #1505
* | | Fixed pint-convertHernan Grecco2023-04-271-16/+40
| | | | | | | | | | | | Close #1646
* | | Fix get_compatible_units for dynamically add units/dimensionsHernan Grecco2023-04-262-1/+6
| | | | | | | | | | | | Close #1725
* | | Fixed pr/1574 conflictsHernan Grecco2023-04-255-0/+294
|\ \ \
| * | | Silence verbose mip outputblewis22022-09-231-0/+1
| | | |
| * | | Fix pre-commit problemsblewis22022-08-304-69/+95
| | | |
| * | | Add to_preferredblewis22022-08-305-0/+269
| | | |
* | | | Merge branch 'pr/1712'Hernan Grecco2023-04-252-1/+45
|\ \ \ \
| * \ \ \ Merge branch 'master' into improve-latex-escapingHernan Grecco2023-04-2413-29/+158
| |\ \ \ \
| * | | | | Add test for siunitx formattingYann Büchau2023-02-091-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - works fine for %-sign, however not really for the weird characters - what do we even want the weird characters to be in siunitx mode?