{"library":"optype","type":"library","category":null,"description":"OpType is a Python library (v0.17.0) providing building blocks for precise and flexible type hints, offering single-method protocols for dunder methods, exact types that reject sneaky subtypes, and typed operators. It aims to make type-checking more robust and expressive. The library is actively maintained with somewhat frequent minor releases and supports various modern type checkers like mypy, pyright, and pyrefly.","language":"python","status":"active","version":"0.17.0","tags":["type hinting","protocols","static analysis","mypy","pyright","numpy","type checking","runtime checkable"],"install":[{"cmd":"pip install optype","imports":["from optype import CanAdd","from optype import CanAbs","from optype import JustAny","from optype.dataclasses import HasDataclassFields","from optype import do_add"]},{"cmd":"pip install optype[numpy]","imports":[]}],"homepage":null,"github":"https://github.com/jorenham/optype","docs":"https://jorenham.github.io/optype/","changelog":"https://github.com/jorenham/optype/releases","pypi":"https://pypi.org/project/optype/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":80,"avg_install_s":2.5,"avg_import_s":0.2,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/optype/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}