Skip to content

Commit ae642b2

Browse files
committed
Merge branch 'm-kovalsky/typing-format'
2 parents b944f87 + 2d2b653 commit ae642b2

23 files changed

+35
-35
lines changed

src/sempy_labs/_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call__(
121121
"""
122122
Parameters
123123
----------
124-
audience : Literal["pbi", "storage", "azure", "graph", "asazure", "keyvault"] = "pbi") -> str
124+
audience : typing.Literal["pbi", "storage", "azure", "graph", "asazure", "keyvault"] = "pbi") -> str
125125
Literal if it's for PBI/Fabric API call or OneLake/Storage Account call.
126126
region : str, default=None
127127
The region of the Azure Analysis Services. For example: 'westus2'.

src/sempy_labs/_dax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def _dax_perf_test(
318318
319319
Returns
320320
-------
321-
Tuple[pandas.DataFrame, dict]
321+
typing.Tuple[pandas.DataFrame, dict]
322322
A pandas dataframe showing the SQL profiler trace results of the DAX queries.
323323
A dictionary of the query results in pandas dataframes.
324324
"""

src/sempy_labs/_get_connection_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_connection_string(
2424
----------
2525
item : str | uuid.UUID
2626
The name or ID of the item (Lakehouse or MirroredDatabase).
27-
type : Literal['Lakehouse', 'Warehouse', 'SQLEndpoint']
27+
type : typing.Literal['Lakehouse', 'Warehouse', 'SQLEndpoint']
2828
The type of the item. Must be 'Lakehouse' or 'MirroredDatabase'.
2929
workspace : str | uuid.UUID, default=None
3030
The Fabric workspace name or ID.

src/sempy_labs/_helper_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def resolve_workspace_name_and_id(
11261126
11271127
Returns
11281128
-------
1129-
str, uuid.UUID
1129+
typing.Tuple[str, str]
11301130
The name and ID of the Fabric workspace.
11311131
"""
11321132

@@ -1349,7 +1349,7 @@ def resolve_dataset_from_report(
13491349
13501350
Returns
13511351
-------
1352-
Tuple[uuid.UUID, str, uuid.UUID, str]
1352+
typing.Tuple[uuid.UUID, str, uuid.UUID, str]
13531353
The semantic model UUID, semantic model name, semantic model workspace UUID, semantic model workspace name
13541354
"""
13551355

@@ -1389,7 +1389,7 @@ def resolve_workspace_capacity(
13891389
13901390
Returns
13911391
-------
1392-
Tuple[uuid.UUID, str]
1392+
typing.Tuple[uuid.UUID, str]
13931393
capacity Id; capacity came.
13941394
"""
13951395
from sempy_labs._capacities import list_capacities

src/sempy_labs/_onelake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def modify_immutability_policy(
149149
----------
150150
retention_days : int
151151
Retention Days for the action.
152-
scope : Literal["DiagnosticLogs"], default="DiagnosticLogs"
152+
scope : typing.Literal["DiagnosticLogs"], default="DiagnosticLogs"
153153
The scope of the immutability policy. Currently, only "DiagnosticLogs" is supported.
154154
workspace : str | uuid.UUID, default=None
155155
The name or ID of the workspace.

src/sempy_labs/_query_scale_out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def qso_sync_status(
6363
6464
Returns
6565
-------
66-
Tuple[pandas.DataFrame, pandas.DataFrame]
66+
typing.Tuple[pandas.DataFrame, pandas.DataFrame]
6767
2 pandas dataframes showing the query scale-out sync status.
6868
"""
6969

src/sempy_labs/_sql_audit_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_sql_audit_settings(
5151
----------
5252
item : str | uuid.UUID
5353
The name or ID of the item (Warehouse or SQLEndpoint).
54-
type : Literal['Warehouse', 'SQLEndpoint']
54+
type : typing.Literal['Warehouse', 'SQLEndpoint']
5555
The type of the item. Must be 'Warehouse' or 'SQLEndpoint'.
5656
workspace : str | uuid.UUID, default=None
5757
The Fabric workspace name or ID.
@@ -113,7 +113,7 @@ def update_sql_audit_settings(
113113
----------
114114
item : str | uuid.UUID
115115
The name or ID of the item (Warehouse or SQLEndpoint).
116-
type : Literal['Warehouse', 'SQLEndpoint']
116+
type : typing.Literal['Warehouse', 'SQLEndpoint']
117117
The type of the item. Must be 'Warehouse' or 'SQLEndpoint'.
118118
workspace : str | uuid.UUID, default=None
119119
The Fabric workspace name or ID.
@@ -175,7 +175,7 @@ def set_audit_actions_and_group(
175175
----------
176176
item : str | uuid.UUID
177177
The name or ID of the item (Warehouse or SQLEndpoint).
178-
type : Literal['Warehouse', 'SQLEndpoint']
178+
type : typing.Literal['Warehouse', 'SQLEndpoint']
179179
The type of the item. Must be 'Warehouse' or 'SQLEndpoint'.
180180
sql_audit_groups : List[str]
181181
Set audit actions and groups request payload.

src/sempy_labs/_sql_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def refresh_sql_endpoint_metadata(
8080
----------
8181
item : str | uuid.UUID
8282
The name or ID of the item (Lakehouse or MirroredDatabase).
83-
type : Literal['Lakehouse', 'MirroredDatabase']
83+
type : typing.Literal['Lakehouse', 'MirroredDatabase']
8484
The type of the item. Must be 'Lakehouse' or 'MirroredDatabase'.
8585
workspace : str | uuid.UUID, default=None
8686
The Fabric workspace name or ID.
8787
Defaults to None which resolves to the workspace of the attached lakehouse
8888
or if no lakehouse attached, resolves to the workspace of the notebook.
89-
timeout_unit : Literal['Seconds', 'Minutes', 'Hours', 'Days'], default='Minutes'
89+
timeout_unit : typing.Literal['Seconds', 'Minutes', 'Hours', 'Days'], default='Minutes'
9090
The unit of time for the request duration before timing out. Additional duration types may be added over time.
9191
timeout_value : int, default=15
9292
The number of time units in the request duration.

src/sempy_labs/_takeover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def takeover_item_ownership(
2222
----------
2323
item : str | uuid.UUID
2424
The name or UUID of the Report or Semantic Model to take over.
25-
type : Literal["Report", "SemanticModel"]
25+
type : typing.Literal["Report", "SemanticModel"]
2626
The type of item to take over. Must be either 'Report' or 'SemanticModel'.
2727
workspace : Optional[str | uuid.UUID], default=None
2828
The name or ID of the workspace.

src/sempy_labs/_workspaces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def set_workspace_network_communication_policy(
260260
261261
Parameters
262262
----------
263-
inbound_policy : Literal['Allow', 'Deny']
263+
inbound_policy : typing.Literal['Allow', 'Deny']
264264
The policy for all inbound communications to a workspace.
265-
outbound_policy : Literal['Allow', 'Deny']
265+
outbound_policy : typing.Literal['Allow', 'Deny']
266266
The policy for all outbound communications to a workspace.
267267
workspace : str | uuid.UUID, default=None
268268
The workspace name or ID.
@@ -317,7 +317,7 @@ def set_workspace_git_outbound_policy(
317317
318318
Parameters
319319
----------
320-
policy : Literal['Allow', 'Deny']
320+
policy : typing.Literal['Allow', 'Deny']
321321
The policy for all Git outbound communications from a workspace.
322322
workspace : str | uuid.UUID, default=None
323323
The workspace name or ID.

0 commit comments

Comments
 (0)