Skip to content

[CODE-DOC] replace attribute=Component.UNDEFINED by default values #1251

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

Closed
MM-Lehmann opened this issue May 15, 2020 · 1 comment
Closed

Comments

@MM-Lehmann
Copy link

When displaying the inline code documentation, it is very hard to read through all those Component.UNDEFINED attribute defaults. Could we not replace those by their default values or None? At least with a repr() of some kind?
Or is this just me with PyCharm?

@chriddyp
Copy link
Member

We can't actually use None or default values because explicitly providing None is different than not providing any value at all. For context, see this PR that introduced Component.UNDEFINED: #276

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

No branches or pull requests

2 participants