Skip to content

Commit

Permalink
Fix type hinting for python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilman committed Jul 12, 2022
1 parent f2e273b commit ea74912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gspread_asyncio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def locale(self) -> str:
"""
return self.ss.locale

async def named_range(self, named_range: str) -> list[gspread.cell.Cell]:
async def named_range(self, named_range: str) -> List[gspread.cell.Cell]:
"""return a list of :class:`gspread.cell.Cell` objects from
the specified named range.
Expand Down Expand Up @@ -1270,7 +1270,7 @@ async def batch_clear(self, ranges: List[str]):
return await self.agcm._call(self.ws.batch_clear, ranges)

@_nowait
async def batch_format(self, formats: list[dict]):
async def batch_format(self, formats: List[dict]):
"""Formats cells in batch.
:param list formats: List of ranges to format and the new format to apply
Expand Down

0 comments on commit ea74912

Please sign in to comment.