Skip to content

Commit 0f4c304

Browse files
authored
Merge pull request #80 from maxmind/greg/fix-lint
Fix pylint failures with new pylint
2 parents 745483c + 81b71cf commit 0f4c304

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

minfraud/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _create_ip_risk_reasons(
113113
) -> Tuple[IPRiskReason, ...]:
114114
if not reasons:
115115
return ()
116-
return tuple([IPRiskReason(x) for x in reasons]) # type: ignore
116+
return tuple(IPRiskReason(x) for x in reasons) # type: ignore
117117

118118

119119
class GeoIP2Location(geoip2.records.Location):
@@ -796,7 +796,7 @@ class ServiceWarning:
796796
def _create_warnings(warnings: List[Dict[str, str]]) -> Tuple[ServiceWarning, ...]:
797797
if not warnings:
798798
return ()
799-
return tuple([ServiceWarning(x) for x in warnings]) # type: ignore
799+
return tuple(ServiceWarning(x) for x in warnings) # type: ignore
800800

801801

802802
@_inflate_to_namedtuple

0 commit comments

Comments
 (0)