Avaiga / taipy

Turns Data and AI algorithms into production-ready web applications in no time.
https://www.taipy.io
Apache License 2.0
10.94k stars 775 forks source link

Linters auto-complete Config and Gui to lowercase #708

Closed AlexandreSajus closed 5 months ago

AlexandreSajus commented 7 months ago

This feedback comes from a one-hour beta testing session of scenario management

taipy (the library) has both a Gui and a gui object. When typing from taipy import Gui and pressing Enter to go to the next line, linters will auto-complete by replacing Gui with gui image

This forces me to press Escape or to fix the case error after it happens which is frustrating. It can also lead to errors for new users

The same error is triggered with Config

ooooo-create commented 6 months ago

Hi, I find this topic quite fascinating and would be most grateful if you could share more insights about the fundamental principles behind it within the context of a GitHub discussion.

trgiangdo commented 5 months ago

Hello @AlexandreSajus and @ooooo-create,

The gui and Gui are 2 different objects in Taipy package.

The same argument can be pointed out for Core - core, Config - config.

I don't think there is anything we can do about it since we want taipy-gui, taipy-core, and taipy-config can be functional as independent packages.

AlexandreSajus commented 5 months ago

Yeah I'm also not sure how we could fix this outside of doing a lot of renaming. You can close as non-planned