Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed May 19, 2024
1 parent 9769434 commit 5ff2943
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions flask_limiter/commands.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import itertools
import time
from functools import partial
from typing import Any, Callable, Dict, Generator, List, Optional, Set, Tuple, Union
from typing import (
Any,
Callable,
Dict,
Generator,
List,
Optional,
Set,
Tuple,
Union,
cast,
)
from urllib.parse import urlparse

import click
Expand Down Expand Up @@ -180,7 +191,7 @@ def get_filtered_endpoint(
filter_endpoint, _ = adapter.match(
parsed.path, method=method, query_args=parsed.query
)
return filter_endpoint
return cast(str, filter_endpoint)
except NotFound:
console.print(
f"[error]Error: {path} could not be matched to an endpoint[/error]"
Expand Down

0 comments on commit 5ff2943

Please sign in to comment.