mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Fixed for mypy errors
This commit is contained in:
parent
957de8c307
commit
d3a3ee1b53
1 changed files with 3 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# mypy: disable-error-code="no-redef"
|
||||
|
||||
try:
|
||||
import tomli
|
||||
except ModuleNotFoundError:
|
||||
import tomllib as tomli
|
||||
import tomllib as tomli # type: ignore[import-not-found]
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue