Skip to content

Commit

Permalink
do not reference callables in call signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed May 31, 2023
1 parent e31ae6b commit 960cb7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
hooks:
- id: pyupgrade
args: ['--py38-plus']
exclude: 'xclim/core/indicator.py'
exclude: 'xclim/core/indicator.py|xclim/core/utils.py'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion xclim/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class InputKind(IntEnum):
"""


def infer_kind_from_parameter(param: Parameter, has_units: bool = False) -> InputKind:
def infer_kind_from_parameter(param: "Parameter", has_units: bool = False) -> InputKind:
"""Return the appropriate InputKind constant from an ``inspect.Parameter`` object.
The correspondence between parameters and kinds is documented in :py:class:`xclim.core.utils.InputKind`.
Expand Down

0 comments on commit 960cb7d

Please sign in to comment.