Skip to content

Commit b341aa7

Browse files
HOTFIX: Remove unintended FastAPI dep introduced by type checking. (#747)
* HOTFIX: Remove unintended FastAPI dep introduced by type checking. * Update CHANGELOG * copyedit Co-authored-by: Padraic Shafer <76011594+padraic-shafer@users.noreply.github.com> --------- Co-authored-by: Padraic Shafer <76011594+padraic-shafer@users.noreply.github.com>
1 parent cf71856 commit b341aa7

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ Write the date in place of the "Unreleased" in the case a new version is release
33

44
# Changelog
55

6+
## Unreleased
7+
8+
### Fixed
9+
10+
- A dependency on `fastapi` was introduced in `tiled.adapters`. This has been
11+
removed.
12+
613
## v0.1.0a121 (21 May 2024)
714

815
### Added

tiled/adapters/mapping.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,20 @@
55
import sys
66
from collections import Counter
77
from datetime import datetime, timedelta
8-
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union, cast
8+
from typing import (
9+
TYPE_CHECKING,
10+
Any,
11+
Dict,
12+
Iterator,
13+
List,
14+
Optional,
15+
Tuple,
16+
Union,
17+
cast,
18+
)
919

10-
from fastapi import APIRouter
20+
if TYPE_CHECKING:
21+
from fastapi import APIRouter
1122

1223
from ..iterviews import ItemsView, KeysView, ValuesView
1324
from ..queries import (

0 commit comments

Comments
 (0)