Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/type hint py38 #24

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ecoinvent_interface/process_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from enum import Enum
from functools import lru_cache
from pathlib import Path
from typing import Optional, Union
from typing import Optional, Union, Tuple
from urllib.parse import parse_qsl, urlparse

import requests
Expand Down Expand Up @@ -53,7 +53,7 @@ def wrapper(self, *args, **kwargs):
return wrapper


def split_url(url: str) -> tuple[str, dict]:
def split_url(url: str) -> Tuple[str, dict]:
"""Split a URL with params into a base path and a params dict"""
nt = urlparse(url)
return nt.path, dict(parse_qsl(nt.query))
Expand Down
3 changes: 1 addition & 2 deletions ecoinvent_interface/storage.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import hashlib
import json
import shutil
from collections.abc import Iterable, MutableMapping
from pathlib import Path
from typing import Union
from typing import Union, Iterable, MutableMapping

import platformdirs

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
requires-python = ">=3.8"
dependencies = [
"lxml",
"platformdirs",
Expand Down