Skip to content

Commit

Permalink
test_config.py: any list subclass instance is a list
Browse files Browse the repository at this point in the history
Fixes "E721 do not compare types" from pycodestyle.
  • Loading branch information
wferi committed Jul 17, 2024
1 parent 3dfd2fd commit 5acd718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ def test_argparse_inheritance(tmp_path: Path):
def test_argparse_api_definitions():
parser = argparse.ArgumentParser()
assert hasattr(parser, "_actions"), "parser object should have '_actions' attribute"
assert type(parser._actions) == list, "parser's '_actions' attribute must be a list"
assert isinstance(parser._actions, list), "parser's '_actions' attribute must be a list"
assert hasattr(argparse, "_StoreAction"), "argparse must have a '_StoreAction' class defined"

0 comments on commit 5acd718

Please sign in to comment.