GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 8a04f0...03c72a )
by P.R.
11:32
created

Actor.__init__()   A

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
1
from enarksh.event.Event import Event
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
3
4
class Actor:
5
    """
6
    Parent class for classes that fire events and for classes that listen for events.
7
    """
8
    # ------------------------------------------------------------------------------------------------------------------
9
    def __init__(self):
10
        self.registered_events = set()
11
        """
12
        All the (active) event this object can fire.
13
14
        Note: this field MUST only be touched by the event controller.
15
16
        :type: set[enarksh.event.Event.Event]
17
        """
18
19
    # ------------------------------------------------------------------------------------------------------------------
20
    def destroy(self):
21
        """
22
        Removes this object from the event system. This as preparation for removing this object.
23
        """
24
        for event in self.registered_events:
25
            event.destroy()
26
27
        Event.event_controller.unregister_listener_object(self)
28
29
# ----------------------------------------------------------------------------------------------------------------------
30