File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
scaleway-core/scaleway_core/utils Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 57
57
poetry --version
58
58
- name : Install dependencies and library
59
59
run : poetry install
60
- - name : Check typing
60
+ - name : Check typing with mypy
61
61
run : poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores $(echo "${{ matrix.lib }}" | tr "-" "_")
62
62
- name : Check typing with ty
63
63
run : poetry run ty check
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ typing:
37
37
for lib in $( LIBRARIES) ; do \
38
38
cd ${WORKDIR} /$$ lib && \
39
39
poetry run mypy --version && \
40
- poetry run mypy --install-types --non-interactive --strict $$(echo $$lib | tr "-" "_" ) ; \
40
+ poetry run mypy --install-types --non-interactive --strict $$(echo $$lib | tr "-" "_" ) && \
41
+ poetry run ty version && \
42
+ poetry run ty check && \
43
+ poetry run pyrefly --version && \
44
+ poetry run pyrefly check; \
41
45
done
42
46
43
47
lint :
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ class OneOfPossibility(Generic[T]):
10
10
11
11
value : Optional [T ]
12
12
13
- marshal_func : Optional [Callable [[Any , T ], T ]]
14
-
15
13
default : Optional [T ] = None
16
14
17
15
@@ -30,13 +28,6 @@ def resolve_one_of(
30
28
# Get the first non-empty default
31
29
for possibility in possibilities :
32
30
if possibility .default is not None :
33
- if possibility .marshal_func is not None :
34
- # When no actual value, call with None as value
35
- return {
36
- possibility .param : possibility .marshal_func (
37
- None , possibility .default
38
- )
39
- }
40
31
return {possibility .param : possibility .default }
41
32
42
33
# If required, raise an error
You can’t perform that action at this time.
0 commit comments