File tree Expand file tree Collapse file tree 3 files changed +65
-85
lines changed
Expand file tree Collapse file tree 3 files changed +65
-85
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import json
22import re
3- from typing import Any
4- from typing import TypeGuard
53
64import click
75from httpx import Client
8- from pydantic import BaseModel
96from scim2_client import SCIMClientError
107from scim2_client .engines .httpx import SyncSCIMClient
118from scim2_models import Group
2926from 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-
5029def load_config_files (
5130 schemas_fd , resource_types_fd , service_provider_config_fd
5231) -> tuple [
You can’t perform that action at this time.
0 commit comments