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 mypy typing support #57

Merged
merged 2 commits into from
Jan 24, 2022
Merged

Commits on Jan 23, 2022

  1. Add mypy typing support

    Initial type stubs for compatibility with mypy for downstream projects relying on can-isotp.
    
    isotp.tpsock.opts typing is left mostly unfinished and there may be a few inaccuracies in the other .pyi proposals.
    Brent Stone committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    ed26681 View commit details
    Browse the repository at this point in the history
  2. Correct rxfn Optional

    rxfn callable needed an Optional added to the return type of CanMessage: 
    
    rxfn: Optional[Callable[[], Optional[CanMessage]]]
    Brent Stone committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    1cc3dde View commit details
    Browse the repository at this point in the history