You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But some seem to really be incredibly deeply nested and it's especially problematic because you have to double the number of characters to actually assign anything to it. This is an example of the first thing I pulled out of the settings API
Whereas if you just use a string you get rid of half the characters. I feel like this isn't practical to use even with autocomplete cause you've got to go back and read this 85 character string (it's almost so large it would be broken onto 2 lines).
Do people have any thoughts/ideas on how this could be improved? In my mind using str here is better and it can be type checked with typing.Literal but that's not ideal for pyconsole.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I think these kind of lengths of enums are fine, they are just pushing it
But some seem to really be incredibly deeply nested and it's especially problematic because you have to double the number of characters to actually assign anything to it. This is an example of the first thing I pulled out of the settings API
or a less contrived example
Whereas if you just use a string you get rid of half the characters. I feel like this isn't practical to use even with autocomplete cause you've got to go back and read this 85 character string (it's almost so large it would be broken onto 2 lines).
Do people have any thoughts/ideas on how this could be improved? In my mind using str here is better and it can be type checked with typing.Literal but that's not ideal for pyconsole.
Beta Was this translation helpful? Give feedback.
All reactions