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 = [
30
30
" scim2-client>=0.4.3" ,
31
31
" scim2-tester[httpx]>=0.1.10" ,
32
32
" sphinx-click-rst-to-ansi-formatter>=0.1.0" ,
33
- " pydanclick>=0.3 .0" ,
33
+ " pydanclick>=0.4 .0" ,
34
34
" pygments>=2.18.0" ,
35
35
]
36
36
Original file line number Diff line number Diff line change 1
1
import json
2
2
import re
3
- from typing import Any
4
- from typing import TypeGuard
5
3
6
4
import click
7
5
from httpx import Client
8
- from pydantic import BaseModel
9
6
from scim2_client import SCIMClientError
10
7
from scim2_client .engines .httpx import SyncSCIMClient
11
8
from scim2_models import Group
29
26
from scim2_cli .utils import split_headers
30
27
31
28
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
-
50
29
def load_config_files (
51
30
schemas_fd , resource_types_fd , service_provider_config_fd
52
31
) -> tuple [
You can’t perform that action at this time.
0 commit comments