File: control

package info (click to toggle)
flake8-mutable 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 108 kB
  • sloc: python: 163; makefile: 7; sh: 5
file content (24 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Source: flake8-mutable
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Edward Betts <edward@4angle.com>
Section: python
Priority: optional
Build-Depends: debhelper-compat (= 13),
               dh-sequence-python3,
               python3-all,
               python3-pytest <!nocheck>,
               python3-pytest-runner <!nocheck>,
               python3-setuptools
Rules-Requires-Root: no
Standards-Version: 4.6.1
Homepage: https://github.com/ebeweber/flake8-mutable
Vcs-Browser: https://salsa.debian.org/python-team/packages/flake8-mutable
Vcs-Git: https://salsa.debian.org/python-team/packages/flake8-mutable.git

Package: python3-flake8-mutable
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: use flake8 to catch functions with mutable default arguments
 Python's default arguments are evaluated at definition as opposed to when the
 function is invoked. This leads to unexpected behavior, as mutations persist
 between calls. This flake8 extension will warn for this type of mistake.