tests: move remaining tests from tests/ to my.tests, cleanup corresponding modules
This commit is contained in:
parent
a5643206a0
commit
b87d1c970a
9 changed files with 120 additions and 134 deletions
|
@ -10,7 +10,7 @@ REQUIRES = [
|
|||
import time
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Iterator, List, NamedTuple, Optional, Protocol, Sequence
|
||||
from typing import Iterator, List, NamedTuple, Optional, Protocol, Sequence, TYPE_CHECKING
|
||||
|
||||
import pdfannots
|
||||
from more_itertools import bucket
|
||||
|
@ -185,8 +185,6 @@ def stats() -> Stats:
|
|||
|
||||
|
||||
### legacy/misc stuff
|
||||
iter_annotations = annotations # for backwards compatibility
|
||||
if not TYPE_CHECKING:
|
||||
iter_annotations = annotations
|
||||
###
|
||||
|
||||
# can use 'hpi query my.pdfs.annotations -o pprint' to test
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue