Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Aug 15, 2024
1 parent 0ded5a5 commit c15f849
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/banks/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __getattribute__(self, name: str) -> Any:

# Convert string from env var to the actual type
t = super().__getattribute__("__annotations__")[name]
if t == bool:
if t is bool:
return strtobool(read_value)

return t(read_value)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@


def test_default_loader():
assert type(env.loader) == PackageLoader
assert type(env.loader) is PackageLoader
4 changes: 2 additions & 2 deletions tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ def test_defaults():
test_loader = MultiLoader()
assert len(test_loader._loaders) == 2
loader, prio = test_loader._loaders[0]
assert type(loader) == PackageLoader
assert type(loader) is PackageLoader
assert prio == 10
loader, prio = test_loader._loaders[1]
assert type(loader) == FileSystemLoader
assert type(loader) is FileSystemLoader
assert prio == 20


Expand Down

0 comments on commit c15f849

Please sign in to comment.