Skip to content

Fix python sys.path collecting algorithm #1890

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

Merged
merged 4 commits into from
Mar 5, 2023

Conversation

tamarinvs19
Copy link
Collaborator

Description

Now we collect only parent directory of top level module for sys.path. For example, if import is import a.b.c we add only one path to module a.

Fixes #1827

How to test

Manual tests

See #1827. Now we cannot generate real tests for this class, but we don't fail.

Note: Because of langchain project is large, loading information about types is very long!

Self-check list

Check off the item if the statement is true. Hint: [x] is a marked item.

Please do not delete the list or its items.

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

tamarinvs19 and others added 3 commits February 15, 2023 16:30
# Conflicts:
#	utbot-intellij-python/src/main/kotlin/org/utbot/intellij/plugin/language/python/Utils.kt
@tamarinvs19 tamarinvs19 added comp-codegen Issue is related to code generator lang-python Issue is related to python support ctg-bug-fix PR is fixing a bug labels Mar 3, 2023
@tamarinvs19 tamarinvs19 self-assigned this Mar 3, 2023
@tamarinvs19 tamarinvs19 merged commit 9229a56 into main Mar 5, 2023
@tamarinvs19 tamarinvs19 deleted the tamarinvs19/utbot-python-imports branch March 5, 2023 16:42
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator ctg-bug-fix PR is fixing a bug lang-python Issue is related to python support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Something went wrong in initial mypy run. on langchain project
3 participants