Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoucheiron committed Jun 11, 2024
1 parent 2f50ddb commit a922a14
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion pycfmodel/model/cf_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from datetime import date
from typing import Annotated, Any, ClassVar, Collection, Dict, List, Optional, Type, Union
from typing import Any, ClassVar, Collection, Dict, List, Optional, Type, Union

from pydantic import Field
from typing_extensions import Annotated

from pycfmodel.action_expander import expand_actions
from pycfmodel.constants import AWS_NOVALUE
Expand Down
8 changes: 4 additions & 4 deletions pycfmodel/model/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from base64 import b64decode
from datetime import date, datetime
from ipaddress import IPv4Network, IPv6Network
from typing import Any, List, TypeVar, Union
from typing import Any, List, TypeVar, Union, Type

from pydantic import BeforeValidator, Field, GetCoreSchemaHandler
from pydantic._internal import _schema_generation_shared
Expand Down Expand Up @@ -30,7 +30,7 @@ def __get_pydantic_json_schema__(
@classmethod
def __get_pydantic_core_schema__(
cls,
_source: type[Any],
_source: Type[Any],
_handler: GetCoreSchemaHandler,
) -> core_schema.CoreSchema:
return core_schema.no_info_plain_validator_function(
Expand Down Expand Up @@ -59,7 +59,7 @@ def __get_pydantic_json_schema__(
@classmethod
def __get_pydantic_core_schema__(
cls,
_source: type[Any],
_source: Type[Any],
_handler: GetCoreSchemaHandler,
) -> core_schema.CoreSchema:
return core_schema.no_info_plain_validator_function(
Expand Down Expand Up @@ -97,7 +97,7 @@ def __get_pydantic_json_schema__(
@classmethod
def __get_pydantic_core_schema__(
cls,
_source: type[Any],
_source: Type[Any],
_handler: GetCoreSchemaHandler,
) -> core_schema.CoreSchema:
return core_schema.no_info_plain_validator_function(
Expand Down
6 changes: 5 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make freeze
Expand All @@ -11,10 +11,12 @@ build==1.2.1
certifi==2024.6.2
click==8.1.7
coverage[toml]==7.5.3
exceptiongroup==1.2.1
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
idna==3.7
importlib-metadata==7.1.0
iniconfig==2.0.0
isort==5.13.2
mypy-extensions==1.0.0
Expand All @@ -31,8 +33,10 @@ pytest-cov==5.0.0
pytest-repeat==0.9.3
ruff==0.4.8
sniffio==1.3.1
tomli==2.0.1
typing-extensions==4.12.2
wheel==0.43.0
zipp==3.19.2

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make freeze
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make freeze
Expand Down

0 comments on commit a922a14

Please sign in to comment.