-
Notifications
You must be signed in to change notification settings - Fork 454
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
[reopen] Rename NavigationDestination
to NavigationBarDestination
+ some type hinting, fixes and new features
#3172
Conversation
NavigationDesttination
to NavigationBarDestination
+ some type hinting and fixesNavigationDestination
to NavigationBarDestination
+ some type hinting and fixes
…log open/close methods fixes
@ndonkoHenri Do i can merge your pull (#3053) into my pull (write your code to my pull)? then it will be more convenient. Author of project will have to merge only my pull |
NavigationDestination
to NavigationBarDestination
+ some type hinting and fixesNavigationDestination
to NavigationBarDestination
+ some type hinting, fixes and new features
…emove()` methods for `NavigationBar` and magic methods (`Control.__iadd__()`, `Control.__add__()`, `Control.__radd__()`, `Control.__isub__()`, `Control.__sub__()`, `Control.__rsub__()`, `Control.__setitem__()`
finnaly i made this pull
@FeodorFitsner Can you review this PR? |
Let's keep everything separate. It eases review. |
I have already implemented this :) |
Alright, didn't see that before. Furthermore, Autoupdate is actually still in discussion, reason why I didn't wrap it up. |
When my pull will be merged, your features will also be merged. Can you review my pull for to make it happen faster? |
@bleudev, @ndonkoHenri So this PR is based on a branch from #3053? |
FYI: Created a new channel for devs: https://discord.com/channels/981374556059086931/1243237230080688199 |
Great PR with valuable typings additions - much appreciated! |
Thanks |
#3348 |
I became wanting this because feodor said about it in review above. I think that it's very good idea because it's simplifying type hinting where is using icon strings. Idea with ColorStr is not worked out. I think that we should add IconStr enum, but we shouldn't do something with ColorStr right now. |
@FeodorFitsner re-review please) |
Reviewing it now. Thanks! |
Thank you very much! |
… + some type hinting, fixes and new features (flet-dev#3172) * init commit * `page.py` type hinting part 1, `close_snack_bar()`, Snack bar and Dialog open/close methods fixes * Fix Inherited * Fix `'type' object is not subscriptable` * type hinting `page.py` final * `auto_update` + `Page.__contains__()` * add `@deprecated` for`NavigationDestination`, `add()`, `insert()`, `remove()` methods for `NavigationBar` and magic methods (`Control.__iadd__()`, `Control.__add__()`, `Control.__radd__()`, `Control.__isub__()`, `Control.__sub__()`, `Control.__rsub__()`, `Control.__setitem__()` * `add()`, `remove()`, `inserrt()`: `NavigationDrawer` and `NavigationRail` * `CupertinoNavigationBar`, `View`, `Column`, `Row` * Type hinting `control.py` * Fix `NameError: name 'Page' is not defined ` * Final `add()`, `insert()`, `remove()` * type hinting for `cupertino_navigation_bar.py` * isort and black formatting finnaly i made this pull * Change `0.22.0` to `0.22.1` in deprecations * Fix `except ImportError` * Remove `add/insert/remove` methods + remove magic methods * Fix `SyntaxError` and fix `Optional` * Fix `TypeError` * Remove `Args` and `Kwargs` from `types.py` * Delete auto_update
Checklist:
Navigation bar's
NavigationDestination
renamed toNavigationBarDestination
.Type hinting:
navigation_bar.py
,navigation_drawer.py
,navigation_rail.py
cupertino_navigation_bar.py
page.py
control.py
Move
OptionalNumber
totypes.py
page.py
:close_snack_bar() method
Page.show_...()
methods without argument #3173Page.close_...()
methodsshow_...()
toopen_...()
Magic methods:
Control in Page
isort
andblack
formatting(closes #3173)
(reopen of #3161)
It should be merged with #281