Fixing Sphinx warnings during doc generation
This commit is contained in:
1 parent
772ee76e76
commit
a0df4e78b5
12 files changed
+30
-36
No files matched your search
@@ -236,7 +236,7 @@ class PrinterInterface(object):
|
||||
A file that is currently being printed is not allowed to be modified. Any other file or the current file
|
||||
when it is not being printed is fine though.
|
||||
|
||||
.. since:: 1.3.2
|
||||
:since: 1.3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
@@ -259,7 +259,7 @@ class PrinterInterface(object):
|
||||
Returns whether the provided ``path`` (on the printer's SD if ``sd`` is True) is the currently selected
|
||||
file for printing.
|
||||
|
||||
.. since:: 1.3.2
|
||||
:since: 1.3.2
|
||||
|
||||
.. warning::
|
||||
|
||||
|
||||
@@ -800,7 +800,7 @@ class Settings(object):
|
||||
def last_modified(self):
|
||||
"""
|
||||
Returns:
|
||||
int: The last modification time of the configuration file.
|
||||
(int) The last modification time of the configuration file.
|
||||
"""
|
||||
stat = os.stat(self._configfile)
|
||||
return stat.st_mtime
|
||||
|
||||
@@ -147,7 +147,7 @@ class SlicingManager(object):
|
||||
def slicing_enabled(self):
|
||||
"""
|
||||
Returns:
|
||||
boolean: True if there is at least one configured slicer available, False otherwise.
|
||||
(boolean) True if there is at least one configured slicer available, False otherwise.
|
||||
"""
|
||||
return len(self.configured_slicers) > 0
|
||||
|
||||
@@ -155,7 +155,7 @@ class SlicingManager(object):
|
||||
def registered_slicers(self):
|
||||
"""
|
||||
Returns:
|
||||
list of str: Identifiers of all available slicers.
|
||||
(list of str) Identifiers of all available slicers.
|
||||
"""
|
||||
return self._slicers.keys()
|
||||
|
||||
@@ -163,7 +163,7 @@ class SlicingManager(object):
|
||||
def configured_slicers(self):
|
||||
"""
|
||||
Returns:
|
||||
list of str: Identifiers of all available configured slicers.
|
||||
(list of str) Identifiers of all available configured slicers.
|
||||
"""
|
||||
return map(lambda slicer: slicer.get_slicer_properties()["type"], filter(lambda slicer: slicer.is_slicer_configured(), self._slicers.values()))
|
||||
|
||||
@@ -173,7 +173,7 @@ class SlicingManager(object):
|
||||
Retrieves the default slicer.
|
||||
|
||||
Returns:
|
||||
str: The identifier of the default slicer or ``None`` if the default slicer is not registered in the
|
||||
(str) The identifier of the default slicer or ``None`` if the default slicer is not registered in the
|
||||
system.
|
||||
"""
|
||||
slicer_name = settings().get(["slicing", "defaultSlicer"])
|
||||
|
||||
Reference in new issue
Block a user