Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Control flow incorrect if imported functions have the same name #197

Copy link
Copy link
@wchresta

Description

@wchresta
Issue body actions

When there are two modules that expose a function with the same name, and those get imported directly (using aliases), the control flow is resolved incorrectly.

Example:
module_a.py

def foo():
    return 'module_a.foo'

module_b.py

def foo():
    return 'module_b.foo'

test.py

from module_a import foo as foo_a
from module_b import foo as foo_b

foo_a()
foo_b()

This will lead to a control flow that calls the function module_a.foo twice instead of once for each version.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.