-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump dacite to version >= 1.7.0 (#116)
* Bump dacite to version >= 1.7.0 * Remove support for Python 3.9
- Loading branch information
Showing
10 changed files
with
37 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.9" | ||
python-version: "3.10" | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- name: Run pre-commit autoupdate | ||
run: pre-commit autoupdate | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
"""Type definitions for GIOS.""" | ||
from dataclasses import dataclass | ||
from typing import Optional, Union | ||
|
||
|
||
@dataclass | ||
class Sensor: | ||
"""Data class for sensor.""" | ||
|
||
name: str | ||
id: Optional[int] | ||
index: Optional[str] = None | ||
value: Optional[Union[float, str]] = None | ||
id: int | None | ||
index: str | None = None | ||
value: float | str | None = None | ||
|
||
|
||
@dataclass | ||
class GiosSensors: | ||
"""Data class for polutants.""" | ||
|
||
aqi: Optional[Sensor] | ||
c6h6: Optional[Sensor] | ||
co: Optional[Sensor] | ||
no2: Optional[Sensor] | ||
o3: Optional[Sensor] | ||
pm10: Optional[Sensor] | ||
pm25: Optional[Sensor] | ||
so2: Optional[Sensor] | ||
aqi: Sensor | None | ||
c6h6: Sensor | None | ||
co: Sensor | None | ||
no2: Sensor | None | ||
o3: Sensor | None | ||
pm10: Sensor | None | ||
pm25: Sensor | None | ||
so2: Sensor | None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
aiohttp>=3.7.0 | ||
dacite | ||
dacite>=1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters