Quickfix for Python 3.8 type hint issue

This commit is contained in:
Jeremy Singer-Vine
2024-08-18 19:27:36 -04:00
parent e2a707b8bf
commit 1d0eeff419
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/).
## [0.11.4] - [unreleased]
### Fixed
- Fix one type hint so that it doesn't throw error on Python 3.8 (h/t @andrekeller). ([#1184](https://github.com/jsvine/pdfplumber/issues/1184))
## [0.11.3] - 2024-08-07
### Added
+2 -2
View File
@@ -1,7 +1,7 @@
import itertools
from dataclasses import dataclass
from operator import itemgetter
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Union
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Tuple, Type, Union
from . import utils
from ._typing import T_bbox, T_num, T_obj, T_obj_iter, T_obj_list, T_point
@@ -389,7 +389,7 @@ class Table(object):
max(map(itemgetter(3), c)),
)
def _get_rows_or_cols(self, kind: type[CellGroup]) -> List[CellGroup]:
def _get_rows_or_cols(self, kind: Type[CellGroup]) -> List[CellGroup]:
axis = 0 if kind is Row else 1
antiaxis = int(not axis)