Skip to content

Commit

Permalink
Import annotation from future to avoid types as string
Browse files Browse the repository at this point in the history
  • Loading branch information
copalco committed Aug 10, 2023
1 parent 3541a13 commit 216aa60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion falcon/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

"""WSGI BoundedStream class."""

from __future__ import annotations
import io
from typing import TypeVar, Union, List, Optional, BinaryIO, Callable

Expand Down Expand Up @@ -57,7 +58,7 @@ def __init__(self, stream: BinaryIO, stream_len: int) -> None:

self._bytes_remaining = self.stream_len

def __iter__(self) -> 'BoundedStream':
def __iter__(self) -> BoundedStream:
return self

def __next__(self) -> bytes:
Expand Down

0 comments on commit 216aa60

Please sign in to comment.