mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2026-03-07 05:28:44 +00:00
setup.py: specify type of data_files
mypy comlains: ``` mypy... setup.py:98: error: Argument "data_files" to "setup" has incompatible type "list[tuple[str, list[str]]]"; expected "list[tuple[str, Sequence[str]]] | None" [arg-type] setup.py:98: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance setup.py:98: note: Consider using "Sequence" instead, which is covariant ``` Closes: #1127543 LP: #2143232
This commit is contained in:
parent
f80916729f
commit
aa1b4a4a2f
3
setup.py
3
setup.py
@ -3,6 +3,7 @@
|
||||
import glob
|
||||
import pathlib
|
||||
import re
|
||||
from collections.abc import Sequence
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
@ -76,7 +77,7 @@ scripts = [
|
||||
"ubuntu-upload-permission",
|
||||
"update-maintainer",
|
||||
]
|
||||
data_files = [
|
||||
data_files: list[tuple[str, Sequence[str]]] = [
|
||||
("share/bash-completion/completions", glob.glob("bash_completion/*")),
|
||||
("share/man/man1", glob.glob("doc/*.1")),
|
||||
("share/man/man5", glob.glob("doc/*.5")),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user