Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed May 2, 2024
1 parent eeadec0 commit a388e3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/traffic/core/iterator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import functools
from typing import TYPE_CHECKING, Any, Callable, Iterator, Optional, Union, cast
from typing import TYPE_CHECKING, Any, Callable, Iterator, Optional, Union

import rich.repr

Expand Down Expand Up @@ -280,7 +280,6 @@ def flight_iterator(
def fun_wrapper(*args: Any, **kwargs: Any) -> FlightIterator:
return FlightIterator(fun(*args, **kwargs))

fun_wrapper = cast(Callable[..., FlightIterator], fun_wrapper)
fun_wrapper.__annotations__["return"] = FlightIterator

return fun_wrapper

0 comments on commit a388e3a

Please sign in to comment.