The library has many constant definitions that are declared as NAME = 'val', e.g. https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L161
We need to add Final type hint to let users know that these constants should be considered as immutable (this hint doesn't prevent the actual modification and fully backward compatible).
from typing_extensions import Final # support Python < 3.8
NAME: Final = 'val'
The library has many constant definitions that are declared as
NAME = 'val', e.g. https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L161We need to add
Finaltype hint to let users know that these constants should be considered as immutable (this hint doesn't prevent the actual modification and fully backward compatible).