Skip to content

Commit b12c346

Browse files
committed
fix: python <=3.8 uncompatible typing
1 parent 4ffed39 commit b12c346

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Versions follow [Semantic Versioning](https://semver.org/>) (<major>.<minor>.<patch>).
99

10+
### Fixed
11+
12+
- python <=3.8 uncompatible typing
13+
1014
## [0.0.5] - 2023-12-22
1115

1216
### Added

pytest_iam/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from types import ModuleType
66
from typing import Any
77
from typing import Dict
8-
from typing import List
98

109
import portpicker
1110
import pytest
@@ -15,7 +14,6 @@
1514
from canaille.core.models import User
1615
from canaille.core.populate import fake_groups
1716
from canaille.core.populate import fake_users
18-
from canaille.oidc.basemodels import Consent
1917
from canaille.oidc.basemodels import Token
2018
from canaille.oidc.installation import generate_keypair
2119
from flask import Flask
@@ -107,7 +105,7 @@ def login(self, user):
107105
"""
108106
self.logged_user = user
109107

110-
def consent(self, user, client=None) -> Consent | List[Consent]:
108+
def consent(self, user, client=None):
111109
"""Make a user consent to share data with OIDC clients.
112110
113111
:param client: If :const:`None`, all existing clients are consented.

0 commit comments

Comments
 (0)