diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-06 07:54:28 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2021-02-07 10:28:18 +0100 |
commit | a7d776765fddbc8c3faa189bea4395b1be13330f (patch) | |
tree | 40dbff487b7f9ffcc333e28ba8a579f0bd5c7f45 | |
parent | c75b8885c159404e5ee2edbed5009da1a81b217e (diff) | |
download | pylint-git-a7d776765fddbc8c3faa189bea4395b1be13330f.tar.gz |
Fix Need type annotation for '__pkginfo__'
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -31,6 +31,7 @@ import os import sys from distutils.command.build_py import build_py from os.path import exists, isdir, join +from typing import Any, Dict try: from setuptools import setup @@ -49,7 +50,7 @@ except ImportError: __docformat__ = "restructuredtext en" base_dir = os.path.dirname(__file__) -__pkginfo__ = {} +__pkginfo__: Dict[str, Any] = {} with open(os.path.join(base_dir, "pylint", "__pkginfo__.py")) as pkginfo_fp: exec(pkginfo_fp.read(), __pkginfo__) scripts = __pkginfo__.get("scripts", []) |