Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Jun 26, 2023
1 parent 1115521 commit 26e53c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magic/layout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import List
from typing import List, Optional

from github.GithubException import GithubException

Expand Down Expand Up @@ -97,7 +97,7 @@ def is_playable_layout(layout: str) -> bool:
report_missing_layout(layout)
return False

Check warning on line 98 in magic/layout.py

View check run for this annotation

Codecov / codecov/patch

magic/layout.py#L97-L98

Added lines #L97 - L98 were not covered by tests

def report_missing_layout(layout: str) -> None:
def report_missing_layout(layout: Optional[str]) -> None:
cache_key = 'missing_layout_logged'
if not hasattr(report_missing_layout, cache_key): # A little hack to prevent swamping github – see https://stackoverflow.com/a/422198/375262
try:
Expand Down

0 comments on commit 26e53c7

Please sign in to comment.