Skip to content

Conversation

@boriel
Copy link
Collaborator

@boriel boriel commented Dec 19, 2024

Sometimes, when including a file and having an error on a function call, the error shows the filename where the function was defined, not where the error actually happened.

Sometimes, when including a file and having an error
on a function call, the error shows the filename where
the function was defined, not where the error actually
happened.
@boriel boriel self-assigned this Dec 19, 2024
self.args = arglist # Func. call / array access
self.lineno = lineno
self.filename = filename
self.lineno: int = lineno
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartsanchez Apparently this is needed to avoid a [has-type] mypy error??

@boriel boriel merged commit 6594c1f into main Dec 29, 2024
1 check passed
@boriel boriel deleted the fix/wrong_filename_in_errors branch December 29, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants