Skip to content

Commit

Permalink
Update typing_compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 authored Aug 13, 2024
1 parent 0557220 commit 7c68453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/betterproto/plugin/typing_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class NoTyping310TypingCompiler(TypingCompiler):

@staticmethod
def _fmt(type: str) -> str: # for now this is necessary till 3.14
if type.startswith('"'):
return type[1:-1]
return type.removeprefix('"').removesuffix('"')

def optional(self, type: str) -> str:
Expand Down

0 comments on commit 7c68453

Please sign in to comment.