Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Sep 7, 2024
1 parent fb91539 commit 08abd06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ client = rdap.RdapClient()
# asn
as63311 = client.get_asn(63311)

# domain
# domain
domain = client.get_domain('example.com')

# ip
Expand Down
4 changes: 3 additions & 1 deletion rdap/normalize/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def recurse_contacts(
contacts.extend(
[
Contact(**contact)
for contact in ctx.get("entity", entity.handle).get("contacts", [])
for contact in ctx.get("entity", entity.handle).get(
"contacts", []
)
]
)

Expand Down
4 changes: 3 additions & 1 deletion rdap/schema/normalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def normalize_roles(cls, data: Any) -> Any:
data["roles"] = list(set(data["roles"]))

# drop any invalid roles
data["roles"] = [role for role in data["roles"] if f"ROLE.{role}" in VALID_ROLES]
data["roles"] = [
role for role in data["roles"] if f"ROLE.{role}" in VALID_ROLES
]

return data

Expand Down

0 comments on commit 08abd06

Please sign in to comment.