From 09133ef2efd9fdbd49a390336f0deb962b0cf291 Mon Sep 17 00:00:00 2001 From: Matthieu Dartiailh Date: Tue, 18 May 2021 09:35:04 +0200 Subject: [PATCH] docs: fix conf.py and couple of typos --- docs/source/conf.py | 6 +++++- docs/source/faq.rst | 1 + pyvisa_py/highlevel.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 533bea5b..1e8b0e2a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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, diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 4733418b..54a9f179 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -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 diff --git a/pyvisa_py/highlevel.py b/pyvisa_py/highlevel.py index 22a5f31f..f10139d7 100644 --- a/pyvisa_py/highlevel.py +++ b/pyvisa_py/highlevel.py @@ -175,7 +175,7 @@ def clear(self, session: VISASession) -> StatusCode: Parameters ---------- - session : typin.VISASession + session : typing.VISASession Unique logical identifier to a session. Returns