Skip to content

Commit

Permalink
Use <3.9 compatible annotations for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobronium committed Aug 5, 2022
1 parent 4da7966 commit f995915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mypy/modules/success.py
Expand Up @@ -230,8 +230,8 @@ class PydanticTypes(BaseModel):
my_dir_path: DirectoryPath = Path('.')
my_dir_path_str: DirectoryPath = '.' # type: ignore
# Json
my_json: Json[dict[str, str]] = '{"hello": "world"}' # type: ignore
my_json_list: Json[list[str]] = '["hello", "world"]' # type: ignore
my_json: Json[Dict[str, str]] = '{"hello": "world"}' # type: ignore
my_json_list: Json[List[str]] = '["hello", "world"]' # type: ignore
# Date
my_past_date: PastDate = date.today() - timedelta(1)
my_future_date: FutureDate = date.today() + timedelta(1)
Expand Down

0 comments on commit f995915

Please sign in to comment.