https://github.com/martinthoma/openpyxl-stubs
Type stubs for openpyxl
https://github.com/martinthoma/openpyxl-stubs
mypy openpyxl python stubs types typing
Last synced: 4 months ago
JSON representation
Type stubs for openpyxl
- Host: GitHub
- URL: https://github.com/martinthoma/openpyxl-stubs
- Owner: MartinThoma
- License: mit
- Created: 2020-10-19T10:34:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T21:54:41.000Z (almost 3 years ago)
- Last Synced: 2025-06-14T09:02:11.818Z (4 months ago)
- Topics: mypy, openpyxl, python, stubs, types, typing
- Language: Python
- Homepage:
- Size: 67.4 KB
- Stars: 9
- Watchers: 3
- Forks: 9
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.org/project/openpyxl-stubs)
[](https://github.com/MartinThoma/openpyxl-stubs)
[](https://github.com/psf/black)
# openpyxl-stubs
Add types for [openpyxl](https://pypi.org/project/openpyxl/) for mypy.
## Installation
```
$ pip install openpyxl-stubs
```## Usage
Mypy will automatically use the type annotations in this package, once it is
installed. You just need to annotate your code:```python
from typing import Optional
from flask_httpauth import HTTPAuth, Authorizationdef foo(bar: HTTPAuth) -> Optional[Authorization]:
return bar.get_auth()
```For general hints how to use type annotations, please read [Type Annotations in Python 3.8](https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d)