Skip to content

Commit

Permalink
docs: fix conf.py and couple of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed May 18, 2021
1 parent 40d4396 commit 09133ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
import os
import sys
import datetime
from importlib.metadata import version as get_version

if sys.version_info >= (3, 8):
from importlib.metadata import version as get_version
else:
from importlib_metadata import version as get_version


# If extensions (or modules to document with autodoc) are in another directory,
Expand Down
1 change: 1 addition & 0 deletions docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ certain systems. We wanted to provide a compatible alternative.

Can PyVISA-py be used from a VM?
--------------------------------

Because PyVISA-py access hardware resources (such as USB ports) running from a
VM can cause issues, such as unexpected timeouts because the VM does not
receive the response. You may be able to set the VM in such that it works but
Expand Down
2 changes: 1 addition & 1 deletion pyvisa_py/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def clear(self, session: VISASession) -> StatusCode:
Parameters
----------
session : typin.VISASession
session : typing.VISASession
Unique logical identifier to a session.
Returns
Expand Down

0 comments on commit 09133ef

Please sign in to comment.