1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-25 19:49:54 +02:00

🐛 Make mypy happier by making mods4pandas a real package

This commit is contained in:
Mike Gerber 2025-06-13 19:00:07 +02:00
parent 51617a5b1e
commit d7c75914d9
6 changed files with 7 additions and 7 deletions

View file

View file

View file

@ -4,8 +4,8 @@ from lxml import etree as ET
import pandas as pd
from mods4pandas.alto4pandas import alto_to_dict, process
from mods4pandas.lib import flatten
from ..alto4pandas import alto_to_dict, process
from ..lib import flatten
TESTS_DATA_DIR = Path(__file__).parent / "data"

View file

@ -1,8 +1,8 @@
from lxml import etree as ET
from mods4pandas.mods4pandas import mets_to_dict
from mods4pandas.lib import flatten
from ..mods4pandas import mets_to_dict
from ..lib import flatten
def dict_fromstring(x):

View file

@ -5,8 +5,8 @@ import pandas as pd
import pytest
from mods4pandas.mods4pandas import mods_to_dict, process
from mods4pandas.lib import flatten
from ..mods4pandas import mods_to_dict, process
from ..lib import flatten
TESTS_DATA_DIR = Path(__file__).parent / "data"

View file

@ -3,7 +3,7 @@ from pathlib import Path
from lxml import etree as ET
from mods4pandas.mods4pandas import pages_to_dict
from ..mods4pandas import pages_to_dict
TESTS_DATA_DIR = Path(__file__).parent / "data"