Skip to content

Commit

Permalink
chore: remove unused import and remove any schema
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehk committed Jan 28, 2025
1 parent 2b0013e commit f453caa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions src/libecalc/application/energy/emitter.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import abc
from typing import Optional

from pydantic import Field

from libecalc.application.energy.component_energy_context import ComponentEnergyContext
from libecalc.application.energy.energy_model import EnergyModel
from libecalc.common.variables import ExpressionEvaluator
from libecalc.core.result.emission import EmissionResult


class Emitter(abc.ABC):
"""
Something that emits something.
Something that emits something..
"""

@property
Expand All @@ -24,4 +21,3 @@ def evaluate_emissions(
energy_context: ComponentEnergyContext,
energy_model: EnergyModel,
) -> Optional[dict[str, EmissionResult]]: ...

5 changes: 0 additions & 5 deletions src/libecalc/common/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import numpy as np
from numpy.typing import NDArray
from pydantic import BaseModel, ConfigDict, Field, model_validator
from pydantic_core import CoreSchema, core_schema

from libecalc.common.errors.exceptions import ProgrammingError
from libecalc.common.temporal_model import TemporalModel
Expand Down Expand Up @@ -177,7 +176,3 @@ def get_subset_for_period(self, period: Period) -> ExpressionEvaluator: ...
def evaluate(
self, expression: Union[Expression, TemporalModel, dict[Period, Expression]]
) -> NDArray[np.float64]: ...

@classmethod
def __get_pydantic_core_schema__(cls, source, handler) -> CoreSchema:
return core_schema.any_schema()

0 comments on commit f453caa

Please sign in to comment.