gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
765 stars 138 forks source link

Support `mypy --strict` #263

Closed mesozoic closed 1 year ago

mesozoic commented 1 year ago

This branch adds type annotations to the entire library, along with a number of Airtable-specific types and TypedDicts. It is not compatible with Python 3.7 but it works on all later versions. As with some of the other big branches, it might be easier to review each commit individually.

This branch resolves #202.

codecov[bot] commented 1 year ago

Codecov Report

Merging #263 (2b6b8c0) into main (d9e5c94) will increase coverage by 1.24%. The diff coverage is 96.78%.

@@            Coverage Diff             @@
##             main     #263      +/-   ##
==========================================
+ Coverage   91.97%   93.22%   +1.24%     
==========================================
  Files          15       16       +1     
  Lines         773      826      +53     
==========================================
+ Hits          711      770      +59     
+ Misses         62       56       -6     
Impacted Files Coverage Δ
pyairtable/metadata.py 29.41% <44.44%> (-6.31%) :arrow_down:
pyairtable/api/abstract.py 98.69% <93.93%> (-1.31%) :arrow_down:
pyairtable/orm/fields.py 94.11% <96.82%> (+1.99%) :arrow_up:
pyairtable/__init__.py 100.00% <100.00%> (ø)
pyairtable/api/__init__.py 100.00% <100.00%> (ø)
pyairtable/api/api.py 77.50% <100.00%> (ø)
pyairtable/api/base.py 77.50% <100.00%> (+0.57%) :arrow_up:
pyairtable/api/params.py 100.00% <100.00%> (+3.94%) :arrow_up:
pyairtable/api/retrying.py 100.00% <100.00%> (ø)
pyairtable/api/table.py 100.00% <100.00%> (ø)
... and 6 more
mesozoic commented 1 year ago

Going to merge this now. Please feel free to open further issues for discussion if anything looks awry.