Skip to content

Commit

Permalink
Add missing return type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jan 11, 2022
1 parent 48166ac commit ba643ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/datastructures.py
Expand Up @@ -439,7 +439,7 @@ def __init__(
self.size = self._get_file_size(file)
self.headers = headers or Headers()

def _get_file_size(self, file: typing.BinaryIO):
def _get_file_size(self, file: typing.BinaryIO) -> int:
self.file.seek(0, 2) # Seek end of file
size = self.file.tell()
self.file.seek(0, 0)
Expand Down

0 comments on commit ba643ab

Please sign in to comment.