Skip to content

Commit

Permalink
Fix mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieucan committed May 22, 2024
1 parent 68014e6 commit f8cf62b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dbt_score/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def set_logging() -> None:
handler.setLevel(logging.WARNING)


def main():
def main() -> None:
"""Main entry-point."""
set_logging()
cli()
Expand Down
2 changes: 1 addition & 1 deletion src/dbt_score/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load(self) -> None:
if config_file:
self._load_toml_file(str(config_file))

def overload(self, values: dict[str, str]) -> None:
def overload(self, values: dict[str, Any]) -> None:
"""Overload config with additional values."""
for key, value in values.items():
self.set_option(key, value)
2 changes: 1 addition & 1 deletion src/dbt_score/rule_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def format_rule(rule: Rule) -> str | None:
return template


def display_catalog(config: Config, title: str, format: str):
def display_catalog(config: Config, title: str, format: str) -> None:
"""Print rules catalog."""
formatter: Formatter
if format == "terminal":
Expand Down

0 comments on commit f8cf62b

Please sign in to comment.