Skip to content

Commit

Permalink
📃 docs: import
Browse files Browse the repository at this point in the history
  • Loading branch information
luxuncang committed May 24, 2024
1 parent 162e3bf commit 0bca6ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pip install typegraph3
注册同步转换器并使用:

```python
from typegraph3 import TypeConverter
from typegraph import TypeConverter

converter = TypeConverter()

Expand All @@ -39,7 +39,7 @@ print(result)

```python
import asyncio
from typegraph3 import TypeConverter
from typegraph import TypeConverter

converter = TypeConverter()

Expand All @@ -60,7 +60,7 @@ asyncio.run(test_async_conversion())
#### 同步

```python
from typegraph3 import TypeConverter
from typegraph import TypeConverter

converter = TypeConverter()

Expand All @@ -79,7 +79,7 @@ print(result)
#### 异步

```python
from typegraph3 import TypeConverter
from typegraph import TypeConverter
import asyncio

converter = TypeConverter()
Expand Down Expand Up @@ -118,7 +118,7 @@ pytest test_switch.py
您可以可视化类型转换图:

```python
from typegraph3 import TypeConverter
from typegraph import TypeConverter

t = TypeConverter()

Expand Down

0 comments on commit 0bca6ce

Please sign in to comment.