Commits on Source (13)
-
Newbyte authored
And remove --check-untyped-defs from mypy.sh script to avoid duplication.
-
Newbyte authored
This is already the default: https://mypy.readthedocs.io/en/stable/config_file.html#confval-color_output
-
Newbyte authored
No parameter called "now" exists for this function, so don't document it.
-
Newbyte authored
At some point, this function was updated to use the Arch type instead of plain strings, but the return type was left omitted and the docstring outdated.
-
Newbyte authored
Reusing this variable might lead to confusing bugs later if this code is changed in the future, and also leads to mypy being confused about the type of size_mb as it then gets assigned both str and int values.
-
Newbyte authored
If flavor is None here, something has gone wrong and the line after will fail. Explicitly assert that it has the right value to appease mypy.
-
-
Newbyte authored
Can't construct a path by using the / operator on strings, so use the Path constructor instead.
-
Newbyte authored
We don't want an actual Arch object in the environment object.
-
Newbyte authored
This is equivalent to the previous definition, but more concise.
-
Newbyte authored
This makes the behaviour match the docstring which specifies that this function returns integers.
-
Newbyte authored
Useful for annotating places where a parsed APKBUILD is expected.
-
Newbyte authored
This could be done better with a real class instead of a TypedDict, but it's better than a regular dict.
Showing
- .ci/mypy.sh 1 addition, 1 deletion.ci/mypy.sh
- pmb/aportgen/device.py 18 additions, 14 deletionspmb/aportgen/device.py
- pmb/build/_package.py 0 additions, 1 deletionpmb/build/_package.py
- pmb/build/autodetect.py 2 additions, 2 deletionspmb/build/autodetect.py
- pmb/build/envkernel.py 3 additions, 3 deletionspmb/build/envkernel.py
- pmb/chroot/initfs.py 2 additions, 0 deletionspmb/chroot/initfs.py
- pmb/install/_install.py 1 addition, 1 deletionpmb/install/_install.py
- pmb/install/blockdevice.py 3 additions, 3 deletionspmb/install/blockdevice.py
- pmb/parse/bootimg.py 18 additions, 2 deletionspmb/parse/bootimg.py
- pmb/parse/depends.py 0 additions, 48 deletionspmb/parse/depends.py
- pmb/types.py 20 additions, 2 deletionspmb/types.py
- pyproject.toml 2 additions, 0 deletionspyproject.toml