Skip to content

Commit d9d6dd0

Browse files
committed
chore: dependency upgrade
1 parent d16a19f commit d9d6dd0

File tree

3 files changed

+65
-85
lines changed

3 files changed

+65
-85
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"scim2-client>=0.4.3",
3131
"scim2-tester[httpx]>=0.1.10",
3232
"sphinx-click-rst-to-ansi-formatter>=0.1.0",
33-
"pydanclick>=0.3.0",
33+
"pydanclick>=0.4.0",
3434
"pygments>=2.18.0",
3535
]
3636

scim2_cli/__init__.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import json
22
import re
3-
from typing import Any
4-
from typing import TypeGuard
53

64
import click
75
from httpx import Client
8-
from pydantic import BaseModel
96
from scim2_client import SCIMClientError
107
from scim2_client.engines.httpx import SyncSCIMClient
118
from scim2_models import Group
@@ -29,24 +26,6 @@
2926
from scim2_cli.utils import split_headers
3027

3128

32-
# monkeypatching pydanclick until this patch is released
33-
# https://github.com/felix-martel/pydanclick/pull/25
34-
def patch_pydanclick():
35-
def _is_pydantic_model(model: Any) -> TypeGuard[type[BaseModel]]:
36-
"""Return True if `model` is a Pydantic `BaseModel` class."""
37-
try:
38-
return issubclass(model, BaseModel)
39-
except TypeError:
40-
return False
41-
42-
import pydanclick.model.field_collection
43-
44-
pydanclick.model.field_collection._is_pydantic_model = _is_pydantic_model
45-
46-
47-
patch_pydanclick()
48-
49-
5029
def load_config_files(
5130
schemas_fd, resource_types_fd, service_provider_config_fd
5231
) -> tuple[

0 commit comments

Comments
 (0)