Skip to content

Commit 0f70385

Browse files
committed
Fix type names
1 parent 6ed8030 commit 0f70385

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

openfisca_core/parameters/parameter_at_instant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class ParameterAtInstant:
1616

1717
def __init__(self, name, instant_str, data = None, file_path = None, metadata = None):
1818
"""
19-
:param string name: name of the parameter, e.g. "taxes.some_tax.some_param"
20-
:param string instant_str: Date of the value in the format `YYYY-MM-DD`.
19+
:param str name: name of the parameter, e.g. "taxes.some_tax.some_param"
20+
:param str instant_str: Date of the value in the format `YYYY-MM-DD`.
2121
:param dict data: Data, usually loaded from a YAML file.
2222
"""
2323
self.name: str = name

openfisca_core/parameters/parameter_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def __init__(self, name = "", directory_path = None, data = None, file_path = No
1919
"""
2020
Instantiate a ParameterNode either from a dict, (using `data`), or from a directory containing YAML files (using `directory_path`).
2121
22-
:param string name: Name of the node, eg "taxes.some_tax".
23-
:param string directory_path: Directory containing YAML files describing the node.
22+
:param str name: Name of the node, eg "taxes.some_tax".
23+
:param str directory_path: Directory containing YAML files describing the node.
2424
:param dict data: Object representing the parameter node. It usually has been extracted from a YAML file.
25-
:param string file_path: YAML file from which the `data` has been extracted from.
25+
:param str file_path: YAML file from which the `data` has been extracted from.
2626
2727
2828
Instantiate a ParameterNode from a dict:

openfisca_core/taxbenefitsystems/tax_benefit_system.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def load_extension(self, extension):
236236
"""
237237
Loads an extension to the tax and benefit system.
238238
239-
:param string extension: The extension to load. Can be an absolute path pointing to an extension directory, or the name of an OpenFisca extension installed as a pip package.
239+
:param str extension: The extension to load. Can be an absolute path pointing to an extension directory, or the name of an OpenFisca extension installed as a pip package.
240240
241241
"""
242242
# Load extension from installed pip package
@@ -418,9 +418,9 @@ def get_variables(self, entity = None):
418418
"""
419419
Gets all variables contained in a tax and benefit system.
420420
421-
:param .Entity entity: If set, returns only the variable defined for the given entity.
421+
:param Entity entity: If set, returns only the variable defined for the given entity.
422422
423-
:returns: A dictionnary, indexed by variable names.
423+
:returns: A dictionary, indexed by variable names.
424424
:rtype: dict
425425
426426
"""

openfisca_core/tools/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def run_tests(tax_benefit_system, paths, options = None):
4444
4545
If `path` is a directory, subdirectories will be recursively explored.
4646
47-
:param .TaxBenefitSystem tax_benefit_system: the tax-benefit system to use to run the tests
47+
:param TaxBenefitSystem tax_benefit_system: the tax-benefit system to use to run the tests
4848
:param str or list paths: A path, or a list of paths, towards the files or directories containing the tests to run. If a path is a directory, subdirectories will be recursively explored.
4949
:param dict options: See more details below.
5050

openfisca_core/variables/variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_formula(self, period = None):
309309
If no period is given and the variable has several formula, return the oldest formula.
310310
311311
:returns: Formula used to compute the variable
312-
:rtype: .Formula
312+
:rtype: Formula
313313
314314
"""
315315

0 commit comments

Comments
 (0)