Skip to content

Commit bede1ac

Browse files
committed
Update typing
1 parent e5e99e4 commit bede1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/betterproto/plugin/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ def pydantic_imports(self) -> Set[str]:
600600

601601
@dataclass
602602
class MapEntryCompiler(FieldCompiler):
603-
py_k_type: Type = None
604-
py_v_type: Type = None
603+
py_k_type: Optional[Type] = None
604+
py_v_type: Optional[Type] = None
605605
proto_k_type: str = ""
606606
proto_v_type: str = ""
607607

0 commit comments

Comments
 (0)