Skip to content

Commit 97bb363

Browse files
authored
updated str to dict (#15)
* updated str to dict * fixed issue
1 parent 3f2f7be commit 97bb363

File tree

9 files changed

+14
-6
lines changed

9 files changed

+14
-6
lines changed

src/sempy_labs/_generate_semantic_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def create_blank_semantic_model(
6565

6666

6767
def create_semantic_model_from_bim(
68-
dataset: str, bim_file: str, workspace: Optional[str] = None
68+
dataset: str, bim_file: dict, workspace: Optional[str] = None
6969
):
7070
"""
7171
Creates a new semantic model based on a Model.bim file.
@@ -74,7 +74,7 @@ def create_semantic_model_from_bim(
7474
----------
7575
dataset : str
7676
Name of the semantic model.
77-
bim_file : str
77+
bim_file : dict
7878
The model.bim file.
7979
workspace : str, default=None
8080
The Fabric workspace name.

src/sempy_labs/_query_scale_out.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
import pandas as pd
34
from sempy_labs._helper_functions import resolve_dataset_id

src/sempy_labs/directlake/_directlake_schema_compare.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
import pandas as pd
34
from sempy_labs._helper_functions import (

src/sempy_labs/directlake/_update_directlake_model_lakehouse_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
from sempy_labs.directlake._get_shared_expression import get_shared_expression
34
from sempy_labs._helper_functions import (

src/sempy_labs/directlake/_warm_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
import pandas as pd
34
from tqdm.auto import tqdm

src/sempy_labs/lakehouse/_shortcuts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
from sempy_labs._helper_functions import (
34
resolve_lakehouse_name,

src/sempy_labs/report/_generate_report.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
import pandas as pd
34
import json, base64, time
@@ -9,8 +10,8 @@
910
def create_report_from_reportjson(
1011
report: str,
1112
dataset: str,
12-
report_json: str,
13-
theme_json: Optional[str] = None,
13+
report_json: dict,
14+
theme_json: Optional[dict] = None,
1415
workspace: Optional[str] = None,
1516
):
1617
"""
@@ -22,9 +23,9 @@ def create_report_from_reportjson(
2223
Name of the report.
2324
dataset : str
2425
Name of the semantic model to connect to the report.
25-
report_json : str
26+
report_json : dict
2627
The report.json file to be used to create the report.
27-
theme_json : str, default=None
28+
theme_json : dict, default=None
2829
The theme.json file to be used for the theme of the report.
2930
workspace : str, default=None
3031
The Fabric workspace name.

src/sempy_labs/report/_report_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
import pandas as pd
34
import json, os, time, base64, copy

src/sempy_labs/report/_report_rebind.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sempy
12
import sempy.fabric as fabric
23
from sempy_labs._helper_functions import resolve_dataset_id, resolve_report_id
34
from typing import Optional

0 commit comments

Comments
 (0)