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

Commit 6e5fe9d

Browse files
Fix import (#6)
1 parent 54389cd commit 6e5fe9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/betterproto2_compiler/compile/importing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def get_type_reference(
105105
compiling_google_protobuf = current_package == ["google", "protobuf"]
106106
importing_google_protobuf = py_package == ["google", "protobuf"]
107107
if importing_google_protobuf and not compiling_google_protobuf:
108-
py_package = ["betterproto", "lib"] + (["pydantic"] if pydantic else []) + py_package
108+
py_package = ["betterproto2", "lib"] + (["pydantic"] if pydantic else []) + py_package
109109

110-
if py_package[:1] == ["betterproto"]:
110+
if py_package[:1] == ["betterproto2"]:
111111
return reference_absolute(imports, py_package, py_type)
112112

113113
if py_package == current_package:

0 commit comments

Comments
 (0)