add coverage condition annotation (#1858)

This commit is contained in:
Ju4tCode
2023-03-29 11:57:33 +08:00
committed by GitHub
parent ae08568daf
commit 1213e89bf5
6 changed files with 39 additions and 8 deletions

View File

@ -15,9 +15,9 @@ from .plugin import Plugin
from .manager import PluginManager
from . import _managers, get_plugin, _module_name_to_plugin_name
try:
try: # pragma: py-gte-311
import tomllib # pyright: reportMissingImports=false
except ModuleNotFoundError:
except ModuleNotFoundError: # pragma: py-lt-311
import tomli as tomllib