Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Fails to replace multiline import correctly #444

Open
eyurtsev opened this issue Aug 6, 2024 · 1 comment
Open

Python: Fails to replace multiline import correctly #444

eyurtsev opened this issue Aug 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@eyurtsev
Copy link

eyurtsev commented Aug 6, 2024

engine marzano(0.1)
language python

`from pydantic import $X` => `from langchain_core.pydantic_v1 import $X`
from pydantic import (
    BaseModel,
    ConfigDict,
    Extra,
    Field,
    ValidationError,
    create_model,
    root_validator,
    validate_arguments,
)

gets mapped to (missing ()

from langchain_core.pydantic_v1 import BaseModel
 ConfigDict,
 Extra,
 Field,
 ValidationError,
 create_model,
 root_validator,
 validate_arguments
@morgante morgante added the bug Something isn't working label Aug 6, 2024
@morgante
Copy link
Contributor

morgante commented Aug 6, 2024

FYI you can use this workaround:

engine marzano(0.1)
language python

`from $pydantic import $_` where {
    $pydantic <: contains `pydantic` => `langchain_core.pydantic_v1`
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants