sassoftware / python-swat

The SAS Scripting Wrapper for Analytics Transfer (SWAT) package is the Python client to SAS Cloud Analytic Services (CAS). It allows users to execute CAS actions and process the results all from Python.
Other
147 stars 63 forks source link

Mypy stubs for swat #136

Closed gygabyte017 closed 2 years ago

gygabyte017 commented 2 years ago

Hi, is there support for stubs? Mypy is always complaining about not finding swat stubs, but I can't find them anywhere (neither in a external package)

Mypy: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Mypy: Skipping analyzing "swat": module is installed, but missing library stubs or py.typed marker

Thank you

bkemper24 commented 2 years ago

There is no support for mypy stubs.

According to the mypy doc, you may be able to suppress the warnings by adding a "# type: ignore" comment on the import line, like: import swat # type: ignore