Fixing Sphinx warnings during doc generation

This commit is contained in:
Peter Backx authored and Gina Häußge committed 2017-11-03 11:11:52 +01:00
1 parent 772ee76e76
commit a0df4e78b5
12 files changed
+30 -36

No files matched your search

+2 -2
View File
@@ -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::
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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"])