Skip to content

Commit

Permalink
Complete type hints coverage for Python code (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego authored and ritchie46 committed Jun 29, 2021
1 parent e4f1806 commit 6b80e50
Show file tree
Hide file tree
Showing 6 changed files with 327 additions and 313 deletions.
2 changes: 1 addition & 1 deletion py-polars/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[mypy]
ignore_missing_imports = True
disallow_untyped_defs = False
disallow_untyped_defs = True
files = polars
2 changes: 1 addition & 1 deletion py-polars/polars/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _ptr_to_numpy(ptr: int, len: int, ptr_type: Any) -> np.ndarray:
return ctypeslib.as_array(ptr_ctype, (len,))


def _as_float_ndarray(ptr, size):
def _as_float_ndarray(ptr: int, size: int) -> np.ndarray:
"""
https://github.com/maciejkula/python-rustlearn
Expand Down

0 comments on commit 6b80e50

Please sign in to comment.