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

RFC: kernelapp: rename ports variable to avoid override #731

Merged
merged 1 commit into from Jul 16, 2021

Conversation

amorenoz
Copy link
Contributor

@amorenoz amorenoz commented Jul 15, 2021

As described in #730, it seems ConnectionFileMixin is expecting ports to be List[int].

https://github.com/jupyter/jupyter_client/blob/5742d84ca2162e21179d82e8b36e10baf0f8d978/jupyter_client/connect.py#L386

IPKernelApp is overriding such attribute and changing its type, which generates the error described.

This is the simplest fix I could come up with. Since I am not familiar with the project, please take this as a suggestion.

#Fixes 730

Signed-off-by: Adrian Moreno amorenoz@redhat.com

"ports" is a property defined in ConnectionFileMixin and used
internally by it

To avoid attribute name colission, rename "ports" to "_ports"

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
@blink1073 blink1073 added this to the 6.0.x milestone Jul 15, 2021
@blink1073 blink1073 added the bug label Jul 15, 2021
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants