Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-haffi committed Oct 6, 2023
1 parent 412a848 commit 4930488
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 23 deletions.
5 changes: 2 additions & 3 deletions src/bo4e/bo/marktlokation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
# pylint: disable=too-many-instance-attributes, too-few-public-methods
from typing import Optional

# pylint: disable=no-name-in-module
from pydantic import field_validator

from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt
from bo4e.bo.geschaeftspartner import Geschaeftspartner
from bo4e.com.adresse import Adresse
Expand All @@ -25,6 +22,8 @@
from bo4e.enum.sparte import Sparte
from bo4e.enum.verbrauchsart import Verbrauchsart

# pylint: disable=no-name-in-module


class Marktlokation(Geschaeftsobjekt):
"""
Expand Down
6 changes: 1 addition & 5 deletions src/bo4e/bo/messlokation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
Contains Messlokation class
and corresponding marshmallow schema for de-/serialization
"""
import re
from typing import Any, Optional

from iso3166 import countries
from pydantic import field_validator, model_validator
from typing import Optional

from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt
from bo4e.bo.zaehler import Zaehler
Expand Down
6 changes: 2 additions & 4 deletions src/bo4e/com/kostenposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
from datetime import datetime
from typing import Optional

# pylint: disable=too-few-public-methods, too-many-instance-attributes
from pydantic import field_validator
from pydantic_core.core_schema import ValidationInfo

from bo4e.com.betrag import Betrag
from bo4e.com.com import COM
from bo4e.com.menge import Menge
from bo4e.com.preis import Preis

# pylint: disable=too-few-public-methods, too-many-instance-attributes


class Kostenposition(COM):
"""
Expand Down
3 changes: 0 additions & 3 deletions src/bo4e/com/rechnungsposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
# pylint: disable=too-few-public-methods, too-many-instance-attributes
from typing import Optional

from pydantic import field_validator
from pydantic_core.core_schema import ValidationInfo

from bo4e.com.betrag import Betrag
from bo4e.com.com import COM
from bo4e.com.menge import Menge
Expand Down
8 changes: 3 additions & 5 deletions src/bo4e/com/verbrauch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
from decimal import Decimal
from typing import Optional

# pylint: disable=too-few-public-methods
# pylint: disable=no-name-in-module
from pydantic import field_validator
from pydantic_core.core_schema import ValidationInfo

from bo4e.com.com import COM
from bo4e.enum.mengeneinheit import Mengeneinheit
from bo4e.enum.wertermittlungsverfahren import Wertermittlungsverfahren

# pylint: disable=too-few-public-methods
# pylint: disable=no-name-in-module


class Verbrauch(COM):
"""
Expand Down
3 changes: 0 additions & 3 deletions src/bo4e/com/zeitreihenwert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from datetime import datetime
from typing import Optional

from pydantic import field_validator
from pydantic_core.core_schema import ValidationInfo

from bo4e.com.zeitreihenwertkompakt import Zeitreihenwertkompakt

# pylint: disable=too-few-public-methods
Expand Down

0 comments on commit 4930488

Please sign in to comment.