mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 16:40:24 +08:00
Quickfix for Python 3.8 type hint issue
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user