diff options
author | Hernan <hernan.grecco@gmail.com> | 2019-12-27 10:54:45 -0300 |
---|---|---|
committer | Hernan <hernan.grecco@gmail.com> | 2019-12-27 10:54:45 -0300 |
commit | 58956fa57fcafce0716f265f9ec81703cb3f547e (patch) | |
tree | d73a6fec9763c9b0a602b89909bc96b16084774d /pint/context.py | |
parent | 3ff439e386191b77cb5186bd98478595aa035355 (diff) | |
download | pint-58956fa57fcafce0716f265f9ec81703cb3f547e.tar.gz |
Fixes W293
Diffstat (limited to 'pint/context.py')
-rw-r--r-- | pint/context.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pint/context.py b/pint/context.py index 0034925..1ceb359 100644 --- a/pint/context.py +++ b/pint/context.py @@ -36,15 +36,15 @@ class Context: """A specialized container that defines transformation functions from one dimension to another. Each Dimension are specified using a UnitsContainer. Simple transformation are given with a function taking a single parameter. - + Conversion functions may take optional keyword arguments and the context can have default values for these arguments. - - + + Additionally, a context may host redefinitions: - - + + A redefinition must be performed among units that already exist in the registry. It cannot change the dimensionality of a unit. The symbol and aliases are automatically inherited from the registry. @@ -108,7 +108,7 @@ class Context: """Creates a new context that shares the funcs dictionary with the original context. The default values are copied from the original context and updated with the new defaults. - + If defaults is empty, return the same context. Parameters @@ -116,7 +116,7 @@ class Context: context : Context Original context. **defaults - + Returns ------- @@ -298,7 +298,7 @@ class ContextChain(ChainMap): def insert_contexts(self, *contexts): """Insert one or more contexts in reversed order the chained map. (A rule in last context will take precedence) - + To facilitate the identification of the context with the matching rule, the *relation_to_context* dictionary of the context is used. """ |