Skip to content

Fix potential usage of None and Unbound variables issues#248

Open
Avasam wants to merge 16 commits into
python-xlib:masterfrom
Avasam:None-and-Unbound
Open

Fix potential usage of None and Unbound variables issues#248
Avasam wants to merge 16 commits into
python-xlib:masterfrom
Avasam:None-and-Unbound

Conversation

@Avasam

@Avasam Avasam commented Nov 17, 2022

Copy link
Copy Markdown
Contributor
  • Misnamed src_cmap
  • Uninitialized attributes and missing methods due to usage of similar classes that don't inherit the same bases
  • Better defaults than None for variables and attributes when possible and None has no special meaning.
  • Potentially unbound variables
  • Additional Non checks or type coercion

It is quite possible that I have made a mistake or misunderstood how something works, please validate carefully.

- Misnamed `src_cmap`
- Uninitialized attributes and missing methods due to usage of similar classes that don't inherit the same bases
- Better defaults than `None` for variables and attributes when possible and `None` has no special meaning.
- Potentially unbound variables
- Additional Non checks or type coersion
Comment thread Xlib/protocol/rq.py Outdated
Comment thread Xlib/protocol/rq.py Outdated
@codecov-commenter

codecov-commenter commented Nov 19, 2022

Copy link
Copy Markdown

Codecov Report

Merging #248 (1fa7079) into master (4e8bbf8) will decrease coverage by 0.05%.
The diff coverage is 66.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #248      +/-   ##
==========================================
- Coverage   78.21%   78.16%   -0.06%     
==========================================
  Files          42       42              
  Lines        4705     4735      +30     
==========================================
+ Hits         3680     3701      +21     
- Misses       1025     1034       +9     

@Avasam

Avasam commented Jul 8, 2023

Copy link
Copy Markdown
Contributor Author

Could I get a review on this?

@Avasam

Avasam commented Aug 18, 2024

Copy link
Copy Markdown
Contributor Author

@python-xlib yearly bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants