Skip to content

Commit

Permalink
fix: correct return typing for _get_latest_agents
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewnbrown committed Jul 15, 2023
1 parent 5283e85 commit e163ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rocalert/services/useragentgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_useragent(self, browser: Browser, operatingsystem: OperatingSystem) -> s
return filtered_agents[0]

@staticmethod
def _get_latest_agents() -> list[str] | None:
def _get_latest_agents() -> list[str]:
try:
latest_agents = get_latest_user_agents()
if latest_agents is None or type(latest_agents) != list:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = roc-toolkit
version = 1.4.9
version = 1.4.10
description = A set of tools for ROC
url = https://github.com/matthewnbrown/roc-toolkit
author = Matt Brown
Expand Down

0 comments on commit e163ccb

Please sign in to comment.