postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
880 stars 95 forks source link

add py.typed to mark pyatv as PEP-561 compliant #2236

Closed stackia closed 11 months ago

stackia commented 11 months ago

Hi! I'm working on enabling strict typing check for home assistant apple_tv integration. Currently, pyatv is not declared as PEP-561 compliant which causes mypy to ignore all imports from pyatv.

Since most of pyatv are already typed, we can safely add a py.typed to mark this library as PEP-561 compliant.

See: https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/

postlund commented 11 months ago

Didn't know about this, great addition. Thanks! I'm gonna try to catch up with things and have a new release out later today (best case) or tomorrow (more likely case).