Skip to content
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
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Comment thread
xvaier marked this conversation as resolved.
matrix:
python-version: [
'3.8',
Expand All @@ -20,12 +21,10 @@ jobs:
name: Python ${{ matrix.python-version }} ${{ matrix.post-venv }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- run: make venv
- if: ${{ matrix.post-venv }}
run: ${{ matrix.post-venv }}
Expand Down
4 changes: 2 additions & 2 deletions src/flareio/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


_API_DOMAIN_DEFAULT: str = "api.flare.io"
_ALLOWED_API_DOMAINS: frozenset[str] = frozenset(
_ALLOWED_API_DOMAINS: t.FrozenSet[str] = frozenset(
{
_API_DOMAIN_DEFAULT,
"api.eu.flare.io",
Expand All @@ -37,7 +37,7 @@ def __init__(
tenant_id: t.Optional[int] = None,
session: t.Optional[requests.Session] = None,
api_domain: t.Optional[str] = None,
_auth: AuthBase | None = None,
_auth: t.Optional[AuthBase] = None,
_enable_beta_features: bool = False,
) -> None:
if not api_key:
Expand Down
6 changes: 4 additions & 2 deletions src/flareio/auth.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from requests import PreparedRequest
from requests.auth import AuthBase

import typing as t


class _StaticHeadersAuth(AuthBase):
def __init__(
self,
*,
headers: dict[str, str],
headers: t.Dict[str, str],
) -> None:
self._headers: dict[str, str] = headers
self._headers: t.Dict[str, str] = headers

def __call__(
self,
Expand Down
4 changes: 3 additions & 1 deletion src/flareio/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import dataclasses

import typing as t


@dataclasses.dataclass(frozen=True)
class ScrollEventsResult:
metadata: dict
event: dict
next: str | None
next: t.Optional[str]
Loading