Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions funpaybotengine/types/offers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from collections.abc import Mapping, Callable

from pydantic import Field, BaseModel, BeforeValidator
from typing_extensions import Self
from funpayparsers.parsers.utils import parse_date_string

from funpaybotengine.types.base import FunPayObject, FunPayMutableObject
Expand Down Expand Up @@ -123,9 +122,7 @@ def common_only(func: Callable[P, T]) -> Callable[P, T]:
def wrapper(*args: P.args, **kwargs: P.kwargs) -> Any:
obj: OfferFields = args[0] # type: ignore
if not obj.is_common:
raise RuntimeError(
f'Instance of {type(obj)!r} is not describing a common lot fields.'
)
raise RuntimeError(f'Instance of {type(obj)!r} is not describing a common lot fields.')
return func(*args, **kwargs)

return wrapper
Expand Down