0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

fix: minor fixes for type annotations

This commit is contained in:
2024-08-22 20:44:28 +02:00
parent dd7c71bb1e
commit 8c2e7c8259
3 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
from __future__ import annotations
import itertools import itertools
from typing import Type from typing import Type

View File

@ -1,3 +1,5 @@
from __future__ import annotations
from bec_lib.endpoints import MessageEndpoints from bec_lib.endpoints import MessageEndpoints
from qtpy.QtCore import Qt, Slot from qtpy.QtCore import Qt, Slot
from qtpy.QtWidgets import QHBoxLayout, QHeaderView, QTableWidget, QTableWidgetItem, QWidget from qtpy.QtWidgets import QHBoxLayout, QHeaderView, QTableWidget, QTableWidgetItem, QWidget

View File

@ -65,7 +65,7 @@ add_module_names = False # Remove namespaces from class/method signatures
autodoc_inherit_docstrings = True # If no docstring, inherit from base class autodoc_inherit_docstrings = True # If no docstring, inherit from base class
set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints
autoclass_content = "both" # Include both class docstring and __init__ autoclass_content = "both" # Include both class docstring and __init__
autodoc_mock_imports = ["pyqtgraph"] autodoc_mock_imports = ["pyqtgraph", "qtpy", "PySide6"]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"] templates_path = ["_templates"]