Skip to content

Commit

Permalink
updated type annotation for Py38 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Sep 14, 2023
1 parent a19b0b3 commit bb3be40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnipath/_core/utils/_options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Union, ClassVar, NoReturn, Optional
from typing import Any, Tuple, Union, ClassVar, NoReturn, Optional
from pathlib import Path
from urllib.parse import urlparse
import configparser
Expand Down Expand Up @@ -89,7 +89,7 @@ class Options:
validator=[attr.validators.instance_of(str), _is_valid_url],
on_setattr=attr.setters.validate,
)
fallback_urls: tuple[str] = attr.ib(
fallback_urls: Tuple[str] = attr.ib(
default=DEFAULT_OPTIONS.fallback_urls,
converter=(lambda val: (val,) if isinstance(val, str) else tuple(val)),
on_setattr=attr.setters.convert,
Expand Down

0 comments on commit bb3be40

Please sign in to comment.