You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...the diagnostic that I see is "wipe" is not defined.
If I make the change you suggested...
importopenseespy.openseesasopsops.wipe()
...I still see a diagnostic, which is effectively the same thing -- "wipe" is not a known attribute of module "openseespy.opensees"
There are a few issues that are preventing Pylance from handling openseespy well:
openseepy/opensees/__init__.py, which you can get to by "go to def" on opensees, imports the platform-specific module within a sys.platform.startswith check which we do not support. We only support simple equality checks on sys.platform as specified by PEP 484.
Even if that worked, the platform-specific packages are implemented in native code (not Python), so Pylance doesn't understand what symbols are exposed by those packages.
You may want to ask the openseespy maintainers if type stubs are available.
Environment data
Code Snippet
Repro Steps
Expected behavior
wipe() is part of the package and the code runs well but I still get the warning that the method is not defined.
strangely, when I use:
import openseespy.opensees as ops
ops.wipe()
the warning goes away.
Actual behavior
There should be no warning
Logs
The text was updated successfully, but these errors were encountered: