arrow icon indicating copy to clipboard operation
arrow copied to clipboard

PEP 484 no .pyi file present

Open reagle opened this issue 3 years ago • 2 comments

Hi, I've been trying to make use of type hints and just used this library for the first time. Your documentation says "Full support for PEP 484-style type hints" but I don't see what types I can use via a pyi file or documentation.

reagle avatar Jun 06 '22 21:06 reagle

We don't have stub files(pyi) as the type hints are in the code itself.

The docs at https://arrow.readthedocs.io/en/latest/#api-guide also have the return types for each function/method.

krisfremen avatar Jun 06 '22 21:06 krisfremen

Again, I apologize for my newb, but I looked briefly at the code and wasn’t sure what the annotations would be that I could use with mypy for instance. I looked at the tests in particular for annotations on function signatures.

reagle avatar Jun 06 '22 22:06 reagle