mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-04 06:21:46 +00:00
fix mypy error
This commit is contained in:
parent
a0a07ab464
commit
d7e2e2cea9
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
package, which are imported into here for compatibility.
|
package, which are imported into here for compatibility.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
from typing import List
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from ..constants import * # NOQA
|
from ..constants import * # NOQA
|
||||||
|
@ -65,7 +66,7 @@
|
||||||
"""
|
"""
|
||||||
The global warnings_list variable is used to collect warning_info elements while borg is running.
|
The global warnings_list variable is used to collect warning_info elements while borg is running.
|
||||||
"""
|
"""
|
||||||
_warnings_list = []
|
_warnings_list: List[warning_info] = []
|
||||||
|
|
||||||
|
|
||||||
def add_warning(msg, *args, **kwargs):
|
def add_warning(msg, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue