mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix shadowed use of builtin type
CURA-6651
This commit is contained in:
parent
fed275024a
commit
f402235406
1 changed files with 4 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2019 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
|
||||||
## Data class that represents a peripheral for a printer.
|
## Data class that represents a peripheral for a printer.
|
||||||
#
|
#
|
||||||
# Output device plug-ins may specify that the printer has a certain set of
|
# Output device plug-ins may specify that the printer has a certain set of
|
||||||
|
|
@ -8,10 +9,8 @@
|
||||||
# stage.
|
# stage.
|
||||||
class Peripheral:
|
class Peripheral:
|
||||||
## Constructs the peripheral.
|
## Constructs the peripheral.
|
||||||
# \param id A unique ID for the peripheral object, like a MAC address or
|
|
||||||
# some hardware ID.
|
|
||||||
# \param type A unique ID for the type of peripheral.
|
# \param type A unique ID for the type of peripheral.
|
||||||
# \param name A human-readable name for the peripheral.
|
# \param name A human-readable name for the peripheral.
|
||||||
def __init__(self, type: str, name: str):
|
def __init__(self, peripheral_type: str, name: str):
|
||||||
self.type = type
|
self.type = peripheral_type
|
||||||
self.name = name
|
self.name = name
|
||||||
Loading…
Add table
Add a link
Reference in a new issue