-
Notifications
You must be signed in to change notification settings - Fork 111
Doc improvements #559
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Doc improvements #559
Conversation
Reviewer's Guide by SourceryThis pull request focuses on improving the documentation within the Class diagram for Window class documentation improvementsclassDiagram
class Window {
+session: Session
+panes: QueryList[Pane]
+active_pane: Pane
+cmd(cmd: str, *args, target: Optional[str|int]) tmux_cmd
+select_pane(target_pane: str|int) Pane
+split(target: Optional[str|int], start_directory: Optional[str], attach: bool, direction: Optional[PaneDirection], full_window_split: bool, zoom: bool, shell: Optional[str], size: Optional[str|int], environment: Optional[dict]) Pane
+resize(adjustment_direction: Optional[ResizeAdjustmentDirection], adjustment: Optional[int], height: Optional[int], width: Optional[int], expand: Optional[bool], shrink: Optional[bool]) Window
+select_layout(layout: Optional[str]) Window
+set_window_option(option: str, value: str|int) Window
+show_window_options(g: Optional[bool]) WindowOptionDict
+show_window_option(option: str, g: bool) str|int|None
+rename_window(new_name: str) Window
+kill(all_except: Optional[bool]) None
+move_window(destination: str, session: Optional[str]) Window
+select() Window
+new_window(...) Window
}
note for Window "Documentation improvements:
- Enhanced method descriptions
- Clarified parameter types
- Added return type details
- Improved examples
- Marked deprecated methods"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tony - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
if val.isdigit(): | ||
window_options[key] = int(val) | ||
else: | ||
window_options[key] = val | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Replace if statement with if expression (assign-if-exp
)
if val.isdigit(): | |
window_options[key] = int(val) | |
else: | |
window_options[key] = val | |
window_options[key] = int(val) if val.isdigit() else val |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #559 +/- ##
==========================================
+ Coverage 79.83% 80.10% +0.27%
==========================================
Files 22 22
Lines 1914 1890 -24
Branches 294 290 -4
==========================================
- Hits 1528 1514 -14
+ Misses 266 259 -7
+ Partials 120 117 -3 ☔ View full report in Codecov by Sentry. |
0d2e6c8
to
3de6757
Compare
e0cfc84
to
aececa0
Compare
ee82522
to
224f487
Compare
2d098b5
to
1768cb5
Compare
0188aed
to
ea5b0c4
Compare
Changes
Streamlining docs for consistency, sustainability.
Summary by Sourcery
Documentation:
Window
class.