Skip to content

Commit d8d5904

Browse files
committed
making coderabbit happy
1 parent 94786a7 commit d8d5904

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ databricks-sdk = {version = "^0.28.0", optional = true}
2020
kagglehub = {extras = ["pandas-datasets"], version = "^0.3.10", optional = true}
2121
simple-salesforce = {version = "^1.12.0", optional = true}
2222
pynacl = {version = "^1.5.0", optional = true}
23-
azure-identity = {version = "^1.25.1", extras = ["sharepoint"]}
24-
msgraph-sdk = {version = "^1.47.0", extras = ["sharepoint"]}
23+
azure-identity = {version = "^1.25.1", optional = true}
24+
msgraph-sdk = {version = "^1.47.0", optional = true}
2525

2626
[tool.poetry.extras]
2727
faker = ["faker"]

pyspark_datasources/sharepoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def push_record(client, record: Any, site_id: str) -> Any:
6060

6161
def validate_required_options(self) -> List[bool]:
6262
"""Validates the required options for a resource."""
63-
return [True if getattr(self, option.rsplit(".", 1)[1]) else False for option in self.required_options()]
63+
return [True if getattr(self, option.rsplit(".", 1)[-1], None) else False for option in self.required_options()]
6464

6565

6666
class ListResource(SharepointResource):
@@ -190,7 +190,7 @@ class SharepointDataSource(DataSource):
190190
191191
Examples
192192
--------
193-
Register the Salesforce Datasource:
193+
Register the Sharepoint Datasource:
194194
195195
>>> from pyspark_datasources import SharepointDataSource
196196
>>> spark.dataSource.register(SharepointDataSource)

0 commit comments

Comments
 (0)