cobbler / cobbler-tftp

Experimental - Cobbler stateless TFTP server
GNU General Public License v2.0
4 stars 2 forks source link

Fix type errors to keep pyright checks green #19

Closed affenull2345 closed 10 months ago

affenull2345 commented 10 months ago

Linked

Fixes N/A

Description

Make the required changes to keep all pyright checks succeed in CI. This involves a change to the CLI (see below) and ignoring some incompatibilities between different importlib-resources versions.

Behaviour changes

Old: The CLI code read the default configuration file from the source code directory. --no-daemon and --enable-automigration options could override these, but their values were ignored.

New: --enable-automigration/--disable-automigration and --daemon/--no-daemon options control the configuration. The CLI code does not depend on the default configuration file and passes all options to load_cli_options correctly.

Category

This is related to a:

Tests