Skip to content

Commit

Permalink
Static analysis fixes for mypy. (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbassett-tibco committed Jan 18, 2024
1 parent 79d4d23 commit da4bf6a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spotfire/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import typing


def _tb_operating_system() -> dict:
info = {
def _tb_operating_system() -> typing.Dict[str, typing.Any]:
info: typing.Dict[str, typing.Any] = {
'name': platform.system()
}

Expand Down Expand Up @@ -54,8 +54,8 @@ def _docker_cgroup(cgroup_file: str = "/proc/self/cgroup") -> bool:
return info


def _tb_python() -> dict:
info = {
def _tb_python() -> typing.Dict[str, typing.Any]:
info: typing.Dict[str, typing.Any] = {
'impl': sys.implementation.name,
'version': sys.version
}
Expand All @@ -68,8 +68,8 @@ def _tb_python() -> dict:
return info


def _tb_packages() -> dict:
info = {}
def _tb_packages() -> typing.Dict[str, typing.Any]:
info: typing.Dict[str, typing.Any] = {}

# Prepare empty locations to preserve ordering of PYTHONPATH
for dir_ in sys.path:
Expand All @@ -92,7 +92,7 @@ def troubleshooting_bundle() -> str:
:return: a string containing the troubleshooting bundle
"""
bundle = {
bundle: typing.Dict[str, typing.Any] = {
'os': _tb_operating_system(),
'python': _tb_python(),
'packages': _tb_packages(),
Expand Down

0 comments on commit da4bf6a

Please sign in to comment.