Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type stubs #1259

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
796bb71
Add stub files generated by monkeytype
StefanBrand Apr 27, 2023
6e126e2
Move type stub files into place where mypy auto-detects them
StefanBrand May 4, 2023
c085f47
Mypy: Ignore boto3.session and cligj
StefanBrand May 5, 2023
77e077a
Add FionaDateType to rfc3339 type stub
StefanBrand May 5, 2023
53d7a10
add mypy action
baloola May 5, 2023
546d59d
Add type stubs for ogrext and schema modules
StefanBrand May 5, 2023
254c16a
Merge branch 'types-runtime-monkeytype' of github.com:EOX-A/Fiona int…
baloola May 5, 2023
b1e3fcf
Typing fixes
constantinius May 5, 2023
68ed509
fix python version
baloola May 5, 2023
0c7a12d
Merge branch 'types-runtime-monkeytype' of github.com:EOX-A/Fiona int…
baloola May 5, 2023
81324e5
Adding boto3 o module ignores
constantinius May 5, 2023
2410da7
Add type stub for _env
StefanBrand May 5, 2023
e2b277a
Add requirements-types.txt file
StefanBrand May 5, 2023
d4f967a
Add IPython to ignored imports
StefanBrand May 5, 2023
42f9e45
installing Dependencies
baloola May 5, 2023
f38da6b
Merge branch 'types-runtime-monkeytype' of github.com:EOX-A/Fiona int…
baloola May 5, 2023
757586c
fix a typo
baloola May 5, 2023
f8c7818
Adding manual stub for CRS
constantinius May 5, 2023
472f1ec
Adding additional manual stubs
constantinius May 5, 2023
02d68b6
Adding missing stubs
constantinius May 5, 2023
4a82e58
Depend on requirements in requirements-types
StefanBrand May 5, 2023
fb80e6b
Add typed GeoJSON objects
StefanBrand Jun 13, 2023
6f000f9
Add GDALVersion-related type stubs
StefanBrand Jun 20, 2023
406f58d
Adding additional type hints to be installed
constantinius Jun 20, 2023
b26afaa
Extracting additional method interface from main.py
constantinius Jun 20, 2023
70f893f
Fixing type hints in test
constantinius Jun 20, 2023
974d4de
Adding inital type hints for _geometry
constantinius Jun 20, 2023
5d00089
Add stubs for functions in crs module
StefanBrand Jun 20, 2023
604e7d9
fix more types
baloola Jun 20, 2023
0c86f4e
Removing duplicate tests
constantinius Jun 20, 2023
444957f
Fixing import
constantinius Jun 20, 2023
6efb3aa
Adding additional type hint exports for ogrext
constantinius Jun 20, 2023
e8ac269
add type for driver_supports_mode
baloola Jun 20, 2023
dd145b3
Fixing typing for supported_drivers in various re-exports
constantinius Jun 20, 2023
79c5736
Adding type hnt
constantinius Jun 20, 2023
53bd1b1
Adding type stubs installation for setuptools
constantinius Jun 20, 2023
2aa427a
add typing to drvsupport
baloola Jun 20, 2023
8c1dbc7
Correctly type
StefanBrand Jun 20, 2023
5d7de80
Fixing duplicate test
constantinius Jun 20, 2023
15a2585
Trying to fix typing for Features.from_dict
constantinius Jun 20, 2023
39ebbca
Add tests directory to static type checking
StefanBrand Jun 20, 2023
e17ab56
Workaround mypy bug with kwargs
StefanBrand Jun 20, 2023
5cba528
Run mypy-test GitHub Action with Python 3.11
StefanBrand Jun 20, 2023
f305dba
Rename GitHub Action step to make it more generic
StefanBrand Jun 20, 2023
fdcacf9
Add pytest to requirements-types.txt
StefanBrand Jun 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add IPython to ignored imports
  • Loading branch information
StefanBrand committed May 5, 2023
commit d4f967af16289ede78fb747c50c2481c177e470a
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -85,5 +85,5 @@ version = {attr = "fiona.__version__"}
readme = {file = ["README.rst", "CHANGES.txt", "CREDITS.txt"]}

[[tool.mypy.overrides]]
module = ["boto3", "boto3.session", "cligj"]
module = ["boto3", "boto3.session", "cligj", "IPython"]
ignore_missing_imports = true