Skip to content

Commit

Permalink
Fix doc variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Sep 1, 2021
1 parent 7b0d865 commit bdda1a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openfisca_core/variables/helpers.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from __future__ import annotations

import typing
import sortedcontainers
from typing import Optional

if typing.TYPE_CHECKING:
from openfisca_core.periods import Period
from openfisca_core.variables import Variable
from openfisca_core.periods import Period

from .. import variables

def get_annualized_variable(variable: Variable, annualization_period: typing.Optional[Period] = None) -> Variable:

def get_annualized_variable(variable: variables.Variable, annualization_period: Optional[Period] = None) -> variables.Variable:
"""
Returns a clone of ``variable`` that is annualized for the period ``annualization_period``.
When annualized, a variable's formula is only called for a January calculation, and the results for other months are assumed to be identical.
Expand Down

0 comments on commit bdda1a9

Please sign in to comment.