Skip to content

Conversation

@antonpetrov145
Copy link

Check if include is of type dict or list, throw error if it is dict but 'path' is not the key

Fixes #1320
Signed-off-by: Anton Petrov [email protected]

Check if include is of type dict or list, throw error if it is dict but 'path' is not the key
Fixes containers#1320
Signed-off-by: Anton Petrov <[email protected]>

@overload
def try_int(i: int | str, fallback: int) -> int: ...
def try_int(i: int | str, fallback: int) -> int:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert formatting changes, ruff format will not like this.

if include:
files.extend([os.path.join(os.path.dirname(filename), i) for i in include])
# Check if 'include' block is dict or list of strings
for i in include:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit or integration test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

podman crashes on Fedora 42

2 participants