1
0
Fork 0
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:
Thomas Waldmann 2024-02-17 23:01:46 +01:00
parent a0a07ab464
commit d7e2e2cea9
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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):