mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Remove trailing whitespace from Python files
This commit is contained in:
parent
1e33360c35
commit
89f0970a88
157 changed files with 562 additions and 562 deletions
|
@ -7,7 +7,7 @@ from UM.Signal import Signal
|
|||
|
||||
class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
||||
"""Fake container class to add to the container registry.
|
||||
|
||||
|
||||
This allows us to test the container registry without testing the container
|
||||
class. If something is wrong in the container class it won't influence this
|
||||
test.
|
||||
|
@ -15,7 +15,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def __init__(self, metadata = None):
|
||||
"""Initialise a new definition container.
|
||||
|
||||
|
||||
The container will have the specified ID and all metadata in the
|
||||
provided dictionary.
|
||||
"""
|
||||
|
@ -29,7 +29,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def getId(self):
|
||||
"""Gets the ID that was provided at initialisation.
|
||||
|
||||
|
||||
:return: The ID of the container.
|
||||
"""
|
||||
|
||||
|
@ -37,10 +37,10 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def getMetaData(self):
|
||||
"""Gets all metadata of this container.
|
||||
|
||||
|
||||
This returns the metadata dictionary that was provided in the
|
||||
constructor of this mock container.
|
||||
|
||||
|
||||
:return: The metadata for this container.
|
||||
"""
|
||||
|
||||
|
@ -48,7 +48,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def getMetaDataEntry(self, entry, default = None):
|
||||
"""Gets a metadata entry from the metadata dictionary.
|
||||
|
||||
|
||||
:param key: The key of the metadata entry.
|
||||
:return: The value of the metadata entry, or None if there is no such
|
||||
entry.
|
||||
|
@ -60,7 +60,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def getName(self):
|
||||
"""Gets a human-readable name for this container.
|
||||
|
||||
|
||||
:return: The name from the metadata, or "MockContainer" if there was no
|
||||
name provided.
|
||||
"""
|
||||
|
@ -69,14 +69,14 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
@property
|
||||
def isEnabled(self):
|
||||
"""Get whether a container stack is enabled or not.
|
||||
|
||||
|
||||
:return: Always returns True.
|
||||
"""
|
||||
return True
|
||||
|
||||
def isReadOnly(self):
|
||||
"""Get whether the container item is stored on a read only location in the filesystem.
|
||||
|
||||
|
||||
:return: Always returns False
|
||||
"""
|
||||
|
||||
|
@ -110,9 +110,9 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def getValue(self, key):
|
||||
"""Get the value of a container item.
|
||||
|
||||
|
||||
Since this mock container cannot contain any items, it always returns None.
|
||||
|
||||
|
||||
:return: Always returns None.
|
||||
"""
|
||||
|
||||
|
@ -120,7 +120,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def hasProperty(self, key, property_name):
|
||||
"""Get whether the container item has a specific property.
|
||||
|
||||
|
||||
This method is not implemented in the mock container.
|
||||
"""
|
||||
|
||||
|
@ -128,7 +128,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def serialize(self, ignored_metadata_keys = None):
|
||||
"""Serializes the container to a string representation.
|
||||
|
||||
|
||||
This method is not implemented in the mock container.
|
||||
"""
|
||||
|
||||
|
@ -136,7 +136,7 @@ class MockContainer(ContainerInterface, UM.PluginObject.PluginObject):
|
|||
|
||||
def deserialize(self, serialized, file_name: Optional[str] = None):
|
||||
"""Deserializes the container from a string representation.
|
||||
|
||||
|
||||
This method is not implemented in the mock container.
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue