summaryrefslogtreecommitdiff
path: root/pint/facets/plain/quantity.py
Commit message (Collapse)AuthorAgeFilesLines
* Python's 3.9 compatible typing annotationsHernan Grecco2023-05-141-10/+21
|
* Better SharedRegistryObjects creationHernan Grecco2023-05-111-5/+5
|
* Fix imports for Python 3.9Hernan Grecco2023-05-111-4/+5
|
* More typing improvementsHernan Grecco2023-05-111-5/+5
|
* Typing related fixesHernan Grecco2023-05-091-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-051-424/+69
| | | | | | | | | | | | | | | | | | | | | 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.
* Run refurb --python-version 3.9 in codeHernan Grecco2023-04-291-31/+31
|
* Run pyupgrade --py39-plus in all files except _vendorHernan Grecco2023-04-291-30/+21
|
* Honor non_int_type when dividing (fix bug).Hernan Grecco2023-04-281-2/+2
|
* Honor non_int_type when dividing.Hernan Grecco2023-04-281-0/+10
|
* Fixed pr/1574 conflictsHernan Grecco2023-04-251-0/+228
|\
| * Silence verbose mip outputblewis22022-09-231-0/+1
| |
| * Fix pre-commit problemsblewis22022-08-301-53/+72
| |
| * Add to_preferredblewis22022-08-301-0/+208
| |
* | Merge branch 'master' into patch-type-importsHernan Grecco2023-04-241-2/+0
|\ \
| * | Run pre-commit run --all-files . Mostly removed empty linesHernan2023-04-241-2/+0
| | |
* | | appease lintersAustin Orr2022-12-201-1/+2
| | |
* | | patch imports during type checkAustin Orr2022-12-201-2/+1
|/ /
* | Merge #1596bors[bot]2022-10-221-0/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1596: Add ndim attribute for pint-pandas compatibility r=hgrecco a=andrewgsavage - [x] Closes #1599 - [x] Executed ``pre-commit run --all-files`` with no errors - [x] The change is fully covered by automated unit tests - [x] Documented in docs/ as appropriate - [x] Added an entry to the CHANGES file Co-authored-by: Andrew <andrewgsavage@gmail.com> Co-authored-by: andrewgsavage <andrewgsavage@gmail.com>
| * | accidenltal commentAndrew2022-10-081-5/+5
| | |
| * | add dataframe to upcast typesAndrew2022-10-081-5/+5
| | |
| * | adds ndim attribute for pandas compatabilityAndrew2022-10-011-0/+6
| |/
* | Update documentationJules Chéron2022-10-091-2/+2
|/ | | | | | | | | | | | | - Rework of configuration with new sphinx_book_theme - Use ipython directive where necessary - Add theme to requirements_docs.txt - Start using autosummarry - Fix doctests - Add sphinx design to requirements - Add overview & panels in home page - Update footer with `Pint Developers` - Fix docstrings - Use string imports in __all__ in __init__.py
* Remove unused classHernan2022-05-071-5/+0
|
* Improved type checking consistencyHernan2022-05-071-32/+3
|
* Remove __handling and __used which are not needed any moreHernan2022-05-071-9/+0
|
* Refactor some nonmultiplicative codeHernan2022-05-071-32/+7
|
* Change Representation to Quantity and Unit (not Plain)Hernan2022-05-071-2/+2
|
* Create Formatting FacetHernan2022-05-071-159/+1
|
* Create Measurement FacetHernan2022-05-071-12/+0
|
* Create Dask FacetHernan2022-05-071-106/+0
|
* Create NumPy FacetHernan2022-05-071-257/+19
|
* Moved Unit and Quantity to plain facetHernan2022-05-071-0/+2150
Note: the word 'plain' was chosen instead of 'base' as BaseUnit or BaseQuantity as the latter might be interpreted physically and not a part of the class hierarchy as intented.