Skip to content

Commit

Permalink
added py.typed and typed Series descriptor (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmatache authored Jul 8, 2021
1 parent 078da05 commit 8d57dd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Empty file added pandera/py.typed
Empty file.
3 changes: 3 additions & 0 deletions pandera/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class Series(pd.Series, Generic[GenericDtype]): # type: ignore
*new in 0.5.0*
"""

def __get__(self, instance: object, owner: Type) -> str:
raise AttributeError("Series should resolve to Field-s")


if TYPE_CHECKING: # pragma: no cover
# pylint:disable=too-few-public-methods,invalid-name
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
license="MIT",
data_files=[("", ["LICENSE.txt"])],
packages=["pandera"],
package_data={"pandera": ["py.typed"]},
install_requires=[
"packaging >= 20.0",
"numpy >= 1.9.0",
Expand Down

0 comments on commit 8d57dd5

Please sign in to comment.