Skip to content

Commit

Permalink
chore: Fix linting issues and apply PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
PSanetra committed Nov 7, 2024
1 parent 58f7404 commit f951a9a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pyzeebe/channel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
DEFAULT_ZEEBE_ADDRESS = "localhost:26500"


def get_zeebe_address(default: str = None) -> str:
def get_zeebe_address(default: str | None = None) -> str:
"""
Get the Zeebe Gateway Address.
Expand All @@ -18,7 +18,7 @@ def get_zeebe_address(default: str = None) -> str:
return os.getenv("ZEEBE_ADDRESS") or default or DEFAULT_ZEEBE_ADDRESS


def get_camunda_oauth_url(default: str = None) -> str:
def get_camunda_oauth_url(default: str | None = None) -> str:
"""
Get the Camunda OAuth URL or Zeebe Authorization Server URL.
Expand Down Expand Up @@ -93,7 +93,7 @@ def get_camunda_cluster_id() -> str:
return r


def get_camunda_cluster_region(default: str = None) -> str:
def get_camunda_cluster_region(default: str | None = None) -> str:
"""
Get the Camunda Cluster Region.
Expand All @@ -114,7 +114,7 @@ def get_camunda_cluster_region(default: str = None) -> str:
return r


def get_camunda_token_audience(default: str = None) -> str:
def get_camunda_token_audience(default: str | None = None) -> str:
"""
Get the Camunda Token Audience.
Expand All @@ -141,9 +141,7 @@ def get_camunda_address(cluster_id: str | None = None, cluster_region: str | Non
Args:
cluster_id (str, optional): The Camunda cluster ID provided as parameter.
Default: Value from CAMUNDA_CLUSTER_ID environment variable or None.
cluster_region (str, optional): The Camunda cluster region provided as parameter.
Default: Value from CAMUNDA_CLUSTER_REGION environment variable.
Returns:
str: The Camunda Cloud gRPC server address.
Expand Down

0 comments on commit f951a9a

Please sign in to comment.