Skip to content

Commit

Permalink
fix: support for python 3.9
Browse files Browse the repository at this point in the history
`... | None` typing is supported only with 3.10
  • Loading branch information
azmeuk committed May 23, 2024
1 parent dbbc20f commit c6e18c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic_scim2/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def for_users(
users: List[User],
total_results: int,
start_index: int = 0,
items_per_page: int | None = None,
items_per_page: Optional[int] = None,
) -> "ListResponse":
return cls(
Resources=users,
Expand All @@ -95,7 +95,7 @@ def for_groups(
groups: List[Group],
total_results: int,
start_index: int = 0,
items_per_page: int | None = None,
items_per_page: Optional[int] = None,
) -> "ListResponse":
return cls(
Resources=groups,
Expand Down

0 comments on commit c6e18c5

Please sign in to comment.