mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
[Fix] Additional typehints
This commit is contained in:
parent
2f40ff8ce9
commit
bbf0b689a1
2 changed files with 3 additions and 3 deletions
|
@ -650,7 +650,7 @@ def _read_append_rep(filename: str, pattern: str, b2b: bool, cfg_separator: str,
|
|||
return T, rep_idl, final_data
|
||||
|
||||
|
||||
def _get_rep_names(ls: list[str], ens_name: None=None, rep_sep: str ='r') -> list[str]:
|
||||
def _get_rep_names(ls: list[str], ens_name: Optional[str]=None, rep_sep: str ='r') -> list[str]:
|
||||
new_names = []
|
||||
for entry in ls:
|
||||
try:
|
||||
|
@ -665,7 +665,7 @@ def _get_rep_names(ls: list[str], ens_name: None=None, rep_sep: str ='r') -> lis
|
|||
return new_names
|
||||
|
||||
|
||||
def _get_appended_rep_names(ls: list[str], prefix: str, name: str, ens_name: None=None, rep_sep: str ='r') -> list[str]:
|
||||
def _get_appended_rep_names(ls: list[str], prefix: str, name: str, ens_name: Optional[str]=None, rep_sep: str ='r') -> list[str]:
|
||||
new_names = []
|
||||
for exc in ls:
|
||||
if not fnmatch.fnmatch(exc, prefix + '*.' + name):
|
||||
|
|
|
@ -233,7 +233,7 @@ class Obs:
|
|||
else:
|
||||
fft = True
|
||||
|
||||
def _parse_kwarg(kwarg_name):
|
||||
def _parse_kwarg(kwarg_name: str):
|
||||
if kwarg_name in kwargs:
|
||||
tmp = kwargs.get(kwarg_name)
|
||||
if isinstance(tmp, (int, float)):
|
||||
|
|
Loading…
Add table
Reference in a new issue