We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 745483c + 81b71cf commit 0f4c304Copy full SHA for 0f4c304
1 file changed
minfraud/models.py
@@ -113,7 +113,7 @@ def _create_ip_risk_reasons(
113
) -> Tuple[IPRiskReason, ...]:
114
if not reasons:
115
return ()
116
- return tuple([IPRiskReason(x) for x in reasons]) # type: ignore
+ return tuple(IPRiskReason(x) for x in reasons) # type: ignore
117
118
119
class GeoIP2Location(geoip2.records.Location):
@@ -796,7 +796,7 @@ class ServiceWarning:
796
def _create_warnings(warnings: List[Dict[str, str]]) -> Tuple[ServiceWarning, ...]:
797
if not warnings:
798
799
- return tuple([ServiceWarning(x) for x in warnings]) # type: ignore
+ return tuple(ServiceWarning(x) for x in warnings) # type: ignore
800
801
802
@_inflate_to_namedtuple
0 commit comments