Skip to content

Commit aa9108a

Browse files
committed
Remove incomplete type hint
Fix “error: "None" has no attribute "parameters"”
1 parent 403a99f commit aa9108a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

openfisca_core/reforms/reform.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from typing import Callable
4-
53
import copy
64

75
from openfisca_core.parameters import ParameterNode
@@ -65,7 +63,7 @@ def full_key(self):
6563
key = '.'.join([baseline_full_key, key])
6664
return key
6765

68-
def modify_parameters(self, modifier_function: Callable[[ParameterNode], ParameterNode]) -> None:
66+
def modify_parameters(self, modifier_function):
6967
"""Make modifications on the parameters of the legislation.
7068
7169
Call this function in `apply()` if the reform asks for legislation parameter modifications.

0 commit comments

Comments
 (0)