Skip to content

Commit

Permalink
docs: change typing to <3.10 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthetechie authored Sep 8, 2022
1 parent a43035d commit 2ccfa0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/asyncio/asyncio_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
from datetime import date
from typing import Optional
from typing import Optional, List, Dict

from pydantic_aioredis import Model
from pydantic_aioredis import RedisConfig
Expand All @@ -14,7 +14,7 @@ class Book(Model):
author: str
published_on: date
in_stock: bool = True
locations: Optional[list[str]]
locations: Optional[List[str]]


# Do note that there is no concept of relationships here
Expand All @@ -23,7 +23,7 @@ class Library(Model):
_primary_key_field: str = "name"
name: str
address: str
details: Optional[dict[str, str]]
details: Optional[Dict[str, str]]


# Redisconfig. Change this configuration to match your redis server
Expand Down

0 comments on commit 2ccfa0a

Please sign in to comment.