summaryrefslogtreecommitdiff
path: root/pint/registry_helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* Add pint typing moduleJules Chéron2021-08-011-4/+20
| | | | | | | | | | | | | | - Quantity as Generic class - Add overloaded signature for __new__ Quantity - Add typing module as private - Add py.typed for PEP561 supports - Add overloaded signature for __new__ Quantity - Quantity as Generic class - Add type hints throughout the project - Add py.typed in package data in setup.cfg - Add type hints for decorators - Add type hints for public API of registry.py - Add type hints for units.py
* docs: fix a few simple typosTim Gates2021-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | There are small typos in: - README.rst - pint/measurement.py - pint/registry.py - pint/registry_helpers.py - pint/testsuite/test_quantity.py - pint/unit.py Fixes: - Should read `quantities` rather than `quanities`. - Should read `written` rather than `writen`. - Should read `results` rather than `resuls`. - Should read `implementation` rather than `implimentation`. - Should read `enthusiasts` rather than `entusiasts`. - Should read `dimensions` rather than `dimenstions`. Closes #1308
* Sphinx fixesGuido Imperiale2020-01-061-8/+9
|
* Add None case to valid valuesHernan2019-12-281-3/+3
|
* LintersHernan2019-12-281-4/+13
|
* wraps enforces str or Unit as argumentsHernan2019-12-281-4/+12
| | | | Close #489, #490
* wraps(strict=True) now accept strings as arguments in the wrapper functionHernan2019-12-281-6/+13
| | | | Closes #711, #723
* Improved docs check/wrapsHernan2019-12-281-21/+24
|
* Streamline codeHernan2019-12-281-7/+5
|
* Add verification of number of args/params in check and wrapHernan2019-12-281-5/+17
|
* Fixes W293Hernan2019-12-271-9/+9
|
* Manual edits after pymentHernan2019-12-271-17/+4
|
* Run pyment -w --convert -o numpydoc .Hernan2019-12-271-20/+75
|
* Remove redundant encoding information (utf8 is the default)Guido Imperiale2019-12-131-1/+0
|
* isortGuido Imperiale2019-12-131-1/+1
|
* blackGuido Imperiale2019-12-131-32/+62
|
* Remove 2.7 support from codebaseGuido Imperiale2019-12-031-8/+5
|
* Sphinx fixesGuido Imperiale2019-09-131-1/+1
|
* Sphinx fixesGuido Imperiale2019-09-131-2/+2
|
* Prevent loosing keywordsQuentin Peter2018-09-251-6/+6
|
* @ureg.wraps now accurately binds kwargsJonathan Wheeler2018-07-201-1/+1
|
* 656:Jonathan Wheeler2018-07-191-13/+20
| | | Added in parsing for named keywords with default values
* Added, documented, and tested new Quantity.check functionJonathan Wheeler2018-07-191-2/+2
|
* Removed extraneous `import sys`Jonathan Wheeler2018-07-131-3/+0
|
* Added backwards compatibility for py27Jonathan Wheeler2018-07-131-12/+12
|
* Attempt to extend support to <3.5Jonathan Wheeler2018-07-131-9/+23
|
* Wraps handles keywords (closes #625, closes #651)Jonathan Wheeler2018-07-131-1/+9
|
* Remove positional string formattersHugo2017-10-191-1/+1
|
* Properly implemnt skip check on checkHernan Grecco2017-06-271-2/+6
|
* Allow dimensionality check for non Quantity argumentsHernan Grecco2017-06-271-2/+3
|
* Put explicit comparison for shorter ureg.check args than valuesHernan Grecco2017-06-271-1/+1
| | | | | | | A dimensionless UnitsContainer (which bool evaluates to false) is not the same as non defined dimensional check Fix #532
* Wraps now gets the canonical name of the unit when passed as stringHernan Grecco2017-04-141-6/+6
| | | | Close #468
* support dimensionless values in wrapsMartin Teichmann2016-11-221-6/+9
| | | | | | | when wrapping a function with UnitRegistry.wraps, we enforce that every argument that has a variable unit actually has a unit. This patch treats every argument without a unit as dimensionless.
* Fix for Python3 izip_longest -> zip_longestHernan Grecco2016-08-011-2/+1
|
* use itertools.izip_longest, add testMark Mikofski2016-08-011-5/+3
| | | | | * recommended by @rec, default fillvalue is None * add test to testsuite.test_unit.test_wraps()
* patch to append None for extra resultsMark Mikofski2016-08-011-1/+4
|
* Fixed wraps for None argumentHernan Grecco2016-02-141-1/+1
|
* Fixed bug on wraps when using a Unit argumentHernan Grecco2016-02-131-3/+1
|
* Updated copyright yearHernan Grecco2016-02-121-1/+1
|
* Implemented reference in wraps decorator.Hernan Grecco2016-02-121-0/+217
We use an API based on strings prefixed with the equal sign. Each parameter can be labeled with a unique name. Parameters can reference other using labels to build up relationships. Close #195