Skip to content

Add type annotations to a few files#904

Closed
qwergle wants to merge 2 commits into
bpython:mainfrom
qwergle:main
Closed

Add type annotations to a few files#904
qwergle wants to merge 2 commits into
bpython:mainfrom
qwergle:main

Conversation

@qwergle

@qwergle qwergle commented Aug 7, 2021

Copy link
Copy Markdown
Contributor

This PR just adds some type annotations to a few files, and is meant to help with fixing #892. It's not much, but I'm still working on adding type annotations to all files.

@codecov-commenter

codecov-commenter commented Aug 7, 2021

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.37931% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.92%. Comparing base (5eb31eb) to head (06d255a).
⚠️ Report is 363 commits behind head on main.

Files with missing lines Patch % Lines
bpython/curtsies.py 25.00% 3 Missing ⚠️
bpython/autocomplete.py 97.22% 1 Missing ⚠️
bpython/cli.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #904      +/-   ##
==========================================
- Coverage   67.92%   67.92%   -0.01%     
==========================================
  Files          61       61              
  Lines        9147     9150       +3     
==========================================
+ Hits         6213     6215       +2     
- Misses       2934     2935       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sebastinas sebastinas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also run black to ensure consistent formatting after your changes.

Comment thread bpython/args.py
Comment thread bpython/autocomplete.py Outdated
Comment thread bpython/autocomplete.py
@qwergle

qwergle commented Aug 13, 2021

Copy link
Copy Markdown
Contributor Author

The commit I just added performs all of the changes you requested, as well as reformatting many files using black.

@sebastinas

Copy link
Copy Markdown
Contributor

hmm, I had to rerun black again. Merged after doing that.

@sebastinas sebastinas closed this Aug 17, 2021
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.

3 participants