Skip to content

Commit

Permalink
Use new JavaType.Primitive enum constants
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Dec 20, 2024
1 parent 49975a3 commit ae2f6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rewrite/rewrite/python/_parser_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2266,7 +2266,7 @@ def __map_fstring(self, node: ast.JoinedStr, prefix: Space, tok: TokenInfo, toke
format,
format,
None,
JavaType.Primitive()
JavaType.Primitive.String
), next(tokens), 0)
else:
delimiter = ''
Expand Down Expand Up @@ -2295,7 +2295,7 @@ def __map_fstring(self, node: ast.JoinedStr, prefix: Space, tok: TokenInfo, toke
s,
s,
None,
JavaType.Primitive(),
JavaType.Primitive.String
))
if cast(ast.Constant, value).value == s:
value_idx += 1
Expand Down

0 comments on commit ae2f6dd

Please sign in to comment.