Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit bec468f

Browse files
committed
Fix typechecking
1 parent 3d85696 commit bec468f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/betterproto2_compiler/known_types/google_values.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
from typing import TYPE_CHECKING
2-
31
from betterproto2_compiler.lib.google.protobuf import (
42
BoolValue as VanillaBoolValue,
53
StringValue as VanillaStringValue,
64
)
75

8-
if TYPE_CHECKING:
9-
from typing import Self
10-
116

127
class BoolValue(VanillaBoolValue):
138
@staticmethod
14-
def from_wrapped(wrapped: bool) -> "Self":
9+
def from_wrapped(wrapped: bool) -> "BoolValue":
1510
return BoolValue(value=wrapped)
1611

1712
def to_wrapped(self) -> bool:
@@ -20,7 +15,7 @@ def to_wrapped(self) -> bool:
2015

2116
class StringValue(VanillaStringValue):
2217
@staticmethod
23-
def from_wrapped(wrapped: str) -> "Self":
18+
def from_wrapped(wrapped: str) -> "StringValue":
2419
return StringValue(value=wrapped)
2520

2621
def to_wrapped(self) -> str:

0 commit comments

Comments
 (0)