Skip to content

Commit

Permalink
HOTFIX: Remove unintended FastAPI dep introduced by type checking. (#747
Browse files Browse the repository at this point in the history
)

* HOTFIX: Remove unintended FastAPI dep introduced by type checking.

* Update CHANGELOG

* copyedit

Co-authored-by: Padraic Shafer <[email protected]>

---------

Co-authored-by: Padraic Shafer <[email protected]>
  • Loading branch information
danielballan and padraic-shafer authored May 22, 2024
1 parent cf71856 commit b341aa7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Write the date in place of the "Unreleased" in the case a new version is release

# Changelog

## Unreleased

### Fixed

- A dependency on `fastapi` was introduced in `tiled.adapters`. This has been
removed.

## v0.1.0a121 (21 May 2024)

### Added
Expand Down
15 changes: 13 additions & 2 deletions tiled/adapters/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@
import sys
from collections import Counter
from datetime import datetime, timedelta
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union, cast
from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterator,
List,
Optional,
Tuple,
Union,
cast,
)

from fastapi import APIRouter
if TYPE_CHECKING:
from fastapi import APIRouter

from ..iterviews import ItemsView, KeysView, ValuesView
from ..queries import (
Expand Down

0 comments on commit b341aa7

Please sign in to comment.