Skip to content

Commit

Permalink
chore: remove overload function
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehk committed Dec 16, 2024
1 parent 720afad commit acfddb7
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections import defaultdict
from typing import Literal, Optional, Union, overload
from typing import Literal, Optional, Union

from pydantic import Field

Expand Down Expand Up @@ -228,14 +228,6 @@ def evaluate_stream_conditions(
return dict(parsed_priorities)


@overload
def create_consumer(consumer: CompressorComponent, period: Period) -> Compressor: ...


@overload
def create_consumer(consumer: PumpComponent, period: Period) -> Pump: ...


def create_consumer(
consumer: Union[CompressorComponent, PumpComponent],
period: Period,
Expand Down

0 comments on commit acfddb7

Please sign in to comment.