Skip to content

Commit

Permalink
adjust typing related issue
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Jan 20, 2024
1 parent d2ff5e9 commit e0b9d43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions cmethods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from __future__ import annotations

from typing import Any, Callable, List, Optional, Tuple, Union
from typing import Any, List, Optional, Tuple, Union

import numpy as np
import xarray as xr
Expand Down Expand Up @@ -440,7 +440,12 @@ def quantile_delta_mapping(
)

def adjust(
self: CMethods, method: str, obs: XRData, simh: XRData, simp: XRData, **kwargs
self: CMethods,
method: str,
obs: XRData,
simh: XRData,
simp: XRData,
**kwargs,
) -> XRData:
"""
Function to apply a bias correction technique on 1-and multidimensional
Expand Down
2 changes: 1 addition & 1 deletion cmethods/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import List

SCALING_METHODS: List[str] = ["linear_scaling", "variance_scaling", "delta_method"]
DISTRIBUTION_METHODS: list[str] = [
DISTRIBUTION_METHODS: List[str] = [
"quantile_mapping",
"detrended_quantile_mapping",
"quantile_delta_mapping",
Expand Down

0 comments on commit e0b9d43

Please sign in to comment.