Failed Conditions
Pull Request — master (#2076)
by Abdeali
02:11
created

coalib/results/HiddenResult.py (4 issues)

1
from coalib.results.Result import Result
2
3
4
class HiddenResult(Result):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable Result does not seem to be defined.
Loading history...
5
    """
6
    This is a result that is not meant to be shown to the user. It can be used
7
    to transfer any data from a dependent bear to others.
8
    """
9
10
    def __init__(self, origin, contents):
11
        """
12
        Creates a new HiddenResult. The contents can be accessed with
13
        obj.contents later.
14
15
        :param origin:   The originating bear.
16
        :param contents: Any object that is picklable since it will be
17
                         transferred across processes.
18
        """
19
        Result.__init__(self, origin, "")
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable origin does not seem to be defined.
Loading history...
Comprehensibility Best Practice introduced by
The variable self does not seem to be defined.
Loading history...
20
21
        self.contents = contents
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable contents does not seem to be defined.
Loading history...
22