Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienVannson committed Sep 18, 2024
1 parent 380877e commit 465f023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/betterproto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __deepcopy__(self, _) -> Self:

# We can't simply use object() here because pydantic automatically performs deep-copy of mutable default values
# See #606
PLACEHOLDER: Placeholder = Placeholder()
PLACEHOLDER: Any = Placeholder()


@dataclasses.dataclass(frozen=True)
Expand Down Expand Up @@ -221,7 +221,7 @@ def dataclass_field(
) -> dataclasses.Field:
"""Creates a dataclass field with attached protobuf metadata."""
return dataclasses.field(
default=None if optional else PLACEHOLDER,
default=None if optional else PLACEHOLDER, # type: ignore
metadata={
"betterproto": FieldMetadata(
number, proto_type, map_types, group, wraps, optional
Expand Down

0 comments on commit 465f023

Please sign in to comment.