Your message dated Tue, 9 Sep 2025 14:32:57 +0200
with message-id <[email protected]>
and subject line Re: mypy fails with a combination of argparse and glob
has caused the Debian Bug report #1063688,
regarding mypy fails with a combination of argparse and glob
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1063688: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063688
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mypy
Version: 1.0.1-1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
$ cat u.py
import argparse
import glob
parser = argparse.ArgumentParser()
parser.add_argument('-g', type=glob.glob)
$ mypy u.py
u.py:5: error: Argument "type" to "add_argument" of "_ActionsContainer" has
incompatible type "Callable[[AnyStr, DefaultNamedArg(Optional[Union[str, bytes,
PathLike[str], PathLike[bytes]]], 'root_dir'), DefaultNamedArg(Optional[int],
'dir_fd'), DefaultNamedArg(bool, 'recursive'), DefaultNamedArg(bool,
'include_hidden')], List[AnyStr]]"; expected "Union[Callable[[str],
List[AnyStr]], FileType]" [arg-type]
Found 1 error in 1 file (checked 1 source file)
Add the following directive to whatever line contains "type=glob.glob" is a
work around:
# type: ignore[arg-type]
-- System Information:
Debian Release: 12.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-17-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mypy depends on:
ii python3 3.11.2-1+b1
ii python3-mypy 1.0.1-1
Versions of packages mypy recommends:
ii python3-typeshed 0.0~git20221107.4f381af-1
Versions of packages mypy suggests:
pn mypy-doc <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Fixed version was released as part of Trixie.
OpenPGP_signature.asc
Description: OpenPGP digital signature
--- End Message ---