Skip to content

Commit

Permalink
feat: Dropped support for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
expobrain committed Nov 9, 2024
1 parent f0b0758 commit cef599a
Show file tree
Hide file tree
Showing 620 changed files with 3,559 additions and 3,556 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.9"
- name: Cache multiple Pips
uses: actions/cache@v4
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-3.8-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-3.9-${{ hashFiles('**/poetry.lock') }}
- run: pip install poetry
- run: poetry install
- run: poetry run mkdocs gh-deploy --force
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
hooks:
- id: pyupgrade
args:
- "--py38-plus"
- "--py39-plus"
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand Down
2 changes: 1 addition & 1 deletion example/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8,<4"
python = "^3.9"
python-incidentio-client = { path = "..", develop = true }
python-dotenv = "^1.0.1"

Expand Down
8 changes: 4 additions & 4 deletions incident_io_client/api/actions_v1/actions_v1_list.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -15,8 +15,8 @@ def _get_kwargs(
incident_id: Union[Unset, str] = UNSET,
is_follow_up: Union[Unset, bool] = UNSET,
incident_mode: Union[Unset, ActionsV1ListIncidentMode] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
) -> dict[str, Any]:
params: dict[str, Any] = {}

params["incident_id"] = incident_id

Expand All @@ -30,7 +30,7 @@ def _get_kwargs(

params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

_kwargs: Dict[str, Any] = {
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v1/actions",
"params": params,
Expand Down
6 changes: 3 additions & 3 deletions incident_io_client/api/actions_v1/actions_v1_show.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@

def _get_kwargs(
id: str,
) -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
) -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v1/actions/{id}".format(
id=id,
Expand Down
8 changes: 4 additions & 4 deletions incident_io_client/api/actions_v2/actions_v2_list.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -14,8 +14,8 @@ def _get_kwargs(
*,
incident_id: Union[Unset, str] = UNSET,
incident_mode: Union[Unset, ActionsV2ListIncidentMode] = UNSET,
) -> Dict[str, Any]:
params: Dict[str, Any] = {}
) -> dict[str, Any]:
params: dict[str, Any] = {}

params["incident_id"] = incident_id

Expand All @@ -27,7 +27,7 @@ def _get_kwargs(

params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

_kwargs: Dict[str, Any] = {
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v2/actions",
"params": params,
Expand Down
6 changes: 3 additions & 3 deletions incident_io_client/api/actions_v2/actions_v2_show.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@

def _get_kwargs(
id: str,
) -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
) -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v2/actions/{id}".format(
id=id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -18,18 +18,18 @@ def _get_kwargs(
body: AlertEventsV2CreateHTTPRequestBody,
token: Union[Unset, str] = UNSET,
authorization: Union[Unset, str] = UNSET,
) -> Dict[str, Any]:
headers: Dict[str, Any] = {}
) -> dict[str, Any]:
headers: dict[str, Any] = {}
if not isinstance(authorization, Unset):
headers["authorization"] = authorization

params: Dict[str, Any] = {}
params: dict[str, Any] = {}

params["token"] = token

params = {k: v for k, v in params.items() if v is not UNSET and v is not None}

_kwargs: Dict[str, Any] = {
_kwargs: dict[str, Any] = {
"method": "post",
"url": "/v2/alert_events/http/{alert_source_config_id}".format(
alert_source_config_id=alert_source_config_id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -15,10 +15,10 @@
def _get_kwargs(
*,
body: AlertRoutesV2CreateRequestBody,
) -> Dict[str, Any]:
headers: Dict[str, Any] = {}
) -> dict[str, Any]:
headers: dict[str, Any] = {}

_kwargs: Dict[str, Any] = {
_kwargs: dict[str, Any] = {
"method": "post",
"url": "/v2/alert_routes",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -10,8 +10,8 @@

def _get_kwargs(
id: str,
) -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
) -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "delete",
"url": "/v2/alert_routes/{id}".format(
id=id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@

def _get_kwargs(
id: str,
) -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
) -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/v2/alert_routes/{id}".format(
id=id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -16,10 +16,10 @@ def _get_kwargs(
id: str,
*,
body: AlertRoutesV2UpdateRequestBody,
) -> Dict[str, Any]:
headers: Dict[str, Any] = {}
) -> dict[str, Any]:
headers: dict[str, Any] = {}

_kwargs: Dict[str, Any] = {
_kwargs: dict[str, Any] = {
"method": "put",
"url": "/v2/alert_routes/{id}".format(
id=id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_route.created.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_route.deleted.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_route.updated.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_schema.updated.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_source_config.created.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_source_config.deleted.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/alert_source_config.updated.1",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Any, Dict, Optional, Union
from typing import Any, Optional, Union

import httpx

Expand All @@ -11,8 +11,8 @@
from ...types import Response


def _get_kwargs() -> Dict[str, Any]:
_kwargs: Dict[str, Any] = {
def _get_kwargs() -> dict[str, Any]:
_kwargs: dict[str, Any] = {
"method": "get",
"url": "/x-audit-logs/announcement_rule.created.1",
}
Expand Down
Loading

0 comments on commit cef599a

Please sign in to comment.