Skip to content

Commit

Permalink
MNT: Ignore pyright's issue. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Apr 7, 2024
1 parent 065cec4 commit 02c9a93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pygeoogc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
)
BOX_ORD = "(west, south, east, north)"
MAX_CONN = 10
CHUNK_SIZE = int(100 * 1024 * 1024) # 100 MB
CHUNK_SIZE = 100 * 1024 * 1024 # 100 MB
EXPIRE_AFTER = 60 * 60 * 24 * 7 # 1 week
__all__ = ["RetrySession", "traverse_json", "streaming_download", "match_crs", "validate_crs"]

Expand Down Expand Up @@ -843,4 +843,7 @@ def get_path(tag_list: list[str]) -> str:

kwds = {"params": {"service": "wms", "request": "GetCapabilities"}}
root = ETree.fromstring(ar.retrieve_text([url], [kwds], ssl=False)[0])
return [t.text.lower() for t in root.findall(get_path(["Capability", "Layer", "CRS"]))]
return [
t.text.lower() # pyright: ignore[reportOptionalMemberAccess]
for t in root.findall(get_path(["Capability", "Layer", "CRS"]))
]

0 comments on commit 02c9a93

Please sign in to comment.