Skip to content

Commit cb50383

Browse files
dependabot[bot]Copilotbcantonijacalata
authored
chore(deps-dev): bump mypy from 2.3.1 to 2.4.0 (#1886)
* chore(deps-dev): bump mypy from 2.3.1 to 2.4.0 Bumps [mypy](https://github.com/python/mypy) from 2.3.1 to 2.4.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v2.3.1...v2.4.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.4.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix mypy inferred optional attribute types Co-authored-by: bcantoni <58372+bcantoni@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bcantoni <58372+bcantoni@users.noreply.github.com> Co-authored-by: Jac <jacalata@users.noreply.github.com>
1 parent e83d67a commit cb50383

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
repository = "https://github.com/tableau/server-client-python"
3434

3535
[project.optional-dependencies]
36-
test = ["black==26.10.1", "build", "mypy==2.3.1", "pytest>=7.0", "pytest-cov", "pytest-subtests",
36+
test = ["black==26.10.1", "build", "mypy==2.4.0", "pytest>=7.0", "pytest-cov", "pytest-subtests",
3737
"pytest-xdist", "requests-mock>=1.0,<2.0", "types-requests>=2.32.4.20250913"]
3838

3939
[tool.setuptools.package-data]

‎tableauserverclient/models/project_item.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(
8888
samples: bool | None = None,
8989
id: str | None = None,
9090
) -> None:
91-
self._content_permissions = None
91+
self._content_permissions: str | None = None
9292
self._id: str | None = id
9393
self.description: str | None = description
9494
self.name: str = name

‎tableauserverclient/models/site_item.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ def __init__(
169169
auto_suspend_refresh_inactivity_window: int = 30,
170170
attribute_capture_enabled: bool | None = None,
171171
):
172-
self._admin_mode = None
172+
self._admin_mode: str | None = None
173173
self._id: str | None = None
174174
self._num_users = None
175-
self._state = None
175+
self._state: str | None = None
176176
self._status_reason = None
177177
self._storage: str | None = None
178178
self.user_quota = user_quota

‎tableauserverclient/models/workbook_item.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,16 @@ def __init__(
137137
self._created_at = None
138138
self._id: str | None = None
139139
self._initial_tags: set = set()
140-
self._pdf = None
141-
self._powerpoint = None
142-
self._preview_image = None
140+
self._pdf: Callable[[], bytes] | None = None
141+
self._powerpoint: Callable[[], bytes] | None = None
142+
self._preview_image: Callable[[], bytes] | None = None
143143
self._project_name = None
144144
self._revisions = None
145145
self._size = None
146146
self._updated_at = None
147147
self._views: Callable[[], list[ViewItem]] | None = None
148148
self.name = name
149-
self._description = None
149+
self._description: str | None = None
150150
self.owner_id: str | None = None
151151
# workaround for Personal Space workbooks without a project
152152
self.project_id: str | None = project_id or uuid.uuid4().__str__()

0 commit comments

Comments
 (0)