Skip to content

Commit 30224c8

Browse files
committed
Use from __future__ import annotations in tests
To ensure that we work with deferred types.
1 parent d823542 commit 30224c8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_asyncpg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ruff: noqa: UP007
2+
3+
from __future__ import annotations
4+
15
import asyncio
26
import json
37
import os

tests/test_dataclasses.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ruff: noqa: UP007
2+
3+
from __future__ import annotations
4+
15
import uuid
26
from dataclasses import dataclass
37
from typing import Annotated, Optional

0 commit comments

Comments
 (0)