Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
skiedude committed Nov 22, 2024
1 parent 7ee7bfc commit 7179097
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions jira/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,8 @@ def _get_url(self, path: str) -> str:
options.update({"path": path})
return self._base_url.format(**options)

def _validate_self_self_url(self):
"""In the case of a proxy, use the configured base URL
and not the one returned from JIRA.
Args:
self (Resource): self
Returns:
None
"""
def _validate_self_self_url(self) -> None:
"""In the case of a proxy, use the configured option server URL."""
self_parsed = urlparse(self.self)
server_parsed = urlparse(self._options["server"])
if self_parsed.netloc != server_parsed.netloc:
Expand Down

0 comments on commit 7179097

Please sign in to comment.