From 1e5cfcc0e52174ec75b0dce26d0a56d35b8aaf63 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Tue, 19 Aug 2025 20:42:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Autofixes=20by=20Black/ruff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mods4pandas/lib.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mods4pandas/lib.py b/src/mods4pandas/lib.py index 082a7ef..627d504 100644 --- a/src/mods4pandas/lib.py +++ b/src/mods4pandas/lib.py @@ -196,13 +196,15 @@ class TagGroup: if e.text == "de": e.attrib["authority"] = "iso639-2b" e.text = "deu" - warnings.warn("Changed languageTerm authority from rfc3066 to iso639-2b") + warnings.warn( + "Changed languageTerm authority from rfc3066 to iso639-2b" + ) return self def add_missing_type_text(self) -> TagGroup: for e in self.group: # Default to type=text - if not "type" in e.attrib: + if "type" not in e.attrib: e.attrib["type"] = "text" warnings.warn("Added placeTerm type='text'") return self