mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-15 07:45:20 +02:00
Clean-up: PEP8 linting and quotes harmonization
This commit is contained in:
parent
777ed4207e
commit
c16b56c7e3
4 changed files with 37 additions and 21 deletions
|
@ -123,13 +123,14 @@ class _NodeCreator:
|
|||
def _checkAttributesAreCompatibleWithDescription(self) -> bool:
|
||||
return (
|
||||
self._checkAttributesCompatibility(self.nodeDesc.inputs, self.inputs)
|
||||
and self._checkAttributesCompatibility(self.nodeDesc.internalInputs, self.internalInputs)
|
||||
and self._checkAttributesCompatibility(self.nodeDesc.internalInputs,
|
||||
self.internalInputs)
|
||||
and self._checkAttributesCompatibility(self.nodeDesc.outputs, self.outputs)
|
||||
)
|
||||
|
||||
def _checkInputAttributesNames(self) -> bool:
|
||||
def serializedInput(attr: desc.Attribute) -> bool:
|
||||
"""Filter that excludes not-serialized desc input attributes."""
|
||||
""" Filter that excludes not-serialized desc input attributes. """
|
||||
if isinstance(attr, desc.PushButtonParam):
|
||||
# PushButtonParam are not serialized has they do not hold a value.
|
||||
return False
|
||||
|
@ -140,7 +141,7 @@ class _NodeCreator:
|
|||
|
||||
def _checkOutputAttributesNames(self) -> bool:
|
||||
def serializedOutput(attr: desc.Attribute) -> bool:
|
||||
"""Filter that excludes not-serialized desc output attributes."""
|
||||
""" Filter that excludes not-serialized desc output attributes. """
|
||||
if attr.isDynamicValue:
|
||||
# Dynamic outputs values are not serialized with the node,
|
||||
# as their value is written in the computed output data.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue