Skip to content

Check_types doesnt check Series #1020

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

Closed
a0th opened this issue Nov 16, 2022 · 1 comment
Closed

Check_types doesnt check Series #1020

a0th opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@a0th
Copy link

a0th commented Nov 16, 2022

Code Sample

import pandera as pa
from pandera.typing import Series


@pa.check_types
def foo(s:Series[int])->Series[int]:
    return "z"


foo('z')

Expected behavior

I would expect the example to fail.
check_types doesn't check Series, neither the input or output.
Not sure if this is intended. It works with typing.DataFrame

Desktop (please complete the following information):

  • OS: [ubuntu 22.10]
  • Python 3.10.5
@a0th a0th added the bug Something isn't working label Nov 16, 2022
@cosmicBboy
Copy link
Collaborator

currently pandera only supports checking pa.typing.DataFrame, this would be a feature enhancement, which is already tracked in #688. Closing this issue in favor of that one.

I'd consider this work to be done after the core internals re-write is complete #381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants