Skip to content

Commit de9c871

Browse files
committed
Reformat docstrings in AppBar and Container controls
Improved readability of docstrings in AppBar and Container by splitting long lines and removing unnecessary noqa comments. No functional changes were made.
1 parent 28d24c8 commit de9c871

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

sdk/python/packages/flet/src/flet/controls/material/app_bar.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ class AppBar(AdaptiveControl):
3838

3939
automatically_imply_leading: bool = True
4040
"""
41-
Whether we should try to imply the [`leading`][flet.AppBar.leading] control if it is `None`.
41+
Whether we should try to imply the [`leading`][flet.AppBar.leading] control
42+
if it is `None`.
4243
43-
- If `True` and `leading` is `None`, this app bar will automatically determine an appropriate leading control.
44-
- If `False` and `leading` is `None`, the space is allocated to the [`title`][flet.AppBar.title].
44+
- If `True` and `leading` is `None`, this app bar will automatically determine
45+
an appropriate leading control.
46+
- If `False` and `leading` is `None`, the space is allocated to the
47+
[`title`][flet.AppBar.title].
4548
- If a `leading` control is provided, this parameter has no effect.
46-
""" # noqa: E501
49+
"""
4750

4851
title: Optional[StrOrControl] = None
4952
"""

sdk/python/packages/flet/src/flet/controls/material/container.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ class Container(ConstrainedControl, AdaptiveControl):
9797
"""
9898
Defines how the [`content`][flet.Container.content] of the container is clipped.
9999
100-
Defaults to `ClipBehavior.ANTI_ALIAS` if [`border_radius`][flet.Container.border_radius] is not `None`;
100+
Defaults to `ClipBehavior.ANTI_ALIAS` if
101+
[`border_radius`][flet.Container.border_radius] is not `None`;
101102
otherwise `ClipBehavior.NONE`.
102-
""" # noqa: E501
103+
"""
103104

104105
ink: bool = False
105106
"""

0 commit comments

Comments
 (0)