Skip to content

Commit

Permalink
Merge pull request #248 from altendky/sphinx_7493
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky authored Jun 14, 2021
2 parents cc27af0 + 5f06051 commit 2814301
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
6 changes: 0 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
("py:obj", "bytes-like"),
# https://github.com/sphinx-doc/sphinx/issues/8127
("py:class", ".."),
# https://github.com/sphinx-doc/sphinx/issues/7493
("py:class", "qtrio._core.Emissions"),
("py:class", "qtrio._core.EmissionsNursery"),
("py:class", "qtrio._core.Outcomes"),
("py:class", "qtrio._core.Reenter"),
("py:class", "qtrio._qt.Signal"),
# https://github.com/Czaki/sphinx-qt-documentation/issues/10
("py:class", "<class 'PySide2.QtCore.QEvent.Type'>"),
("py:class", "<class 'PySide2.QtWidgets.QFileDialog.FileMode'>"),
Expand Down
36 changes: 0 additions & 36 deletions qtrio/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,18 @@
class QTrioException(Exception):
"""Base exception for all QTrio exceptions."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class NoOutcomesError(QTrioException):
"""Raised if you try to unwrap a :class:`qtrio.Outcomes` which has no outcomes."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class EventTypeRegistrationError(QTrioException):
"""Base class for various event type registration exceptions to inherit from."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class EventTypeRegistrationFailedError(EventTypeRegistrationError):
"""Raised if the attempt to register a new event type fails."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"

def __init__(self) -> None:
super().__init__(
"Failed to register the event hint, either no available hints remain or the"
Expand All @@ -41,9 +29,6 @@ def __init__(self) -> None:
class RequestedEventTypeUnavailableError(EventTypeRegistrationError):
"""Raised if the requested event type is unavailable."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"

def __init__(
self,
requested_type: typing.Union[int, QtCore.QEvent.Type],
Expand All @@ -59,9 +44,6 @@ class EventTypeAlreadyRegisteredError(EventTypeRegistrationError):
"""Raised when a request is made to register an event type but a type has already
been registered previously."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"

def __init__(self) -> None:
super().__init__(
"An event type has already been registered, this must only happen once."
Expand All @@ -71,9 +53,6 @@ def __init__(self) -> None:
class ReturnCodeError(QTrioException):
"""Wraps a QApplication return code as an exception."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"

def __eq__(self, other: object) -> bool:
if type(self) != type(other):
return False
Expand All @@ -88,35 +67,20 @@ def __eq__(self, other: object) -> bool:
class InternalError(QTrioException):
"""Raised when an internal state is inconsistent."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class UserCancelledError(QTrioException):
"""Raised when a user requested cancellation of an operation."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class RunnerTimedOutError(QTrioException):
"""Raised when a :class:`qtrio.Runner` times out the run."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class InvalidInputError(QTrioException):
"""Raised when invalid input is provided such as via a dialog."""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"


class DialogNotActiveError(QTrioException):
"""Raised when attempting to interact with a dialog while it is not actually
available.
"""

# https://github.com/sphinx-doc/sphinx/issues/7493
__module__ = "qtrio"

0 comments on commit 2814301

Please sign in to comment.