mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 14:40:25 +08:00
MAINT: Remove shadowing of built-in type function.
Change variable name in convertible registration so that `type` is not over-written at module scope.
This commit is contained in:
@@ -630,8 +630,8 @@ class AssetConvertible(with_metaclass(ABCMeta)):
|
||||
AssetConvertible.register(Integral)
|
||||
AssetConvertible.register(Asset)
|
||||
# Use six.string_types for Python2/3 compatibility
|
||||
for type in string_types:
|
||||
AssetConvertible.register(type)
|
||||
for _type in string_types:
|
||||
AssetConvertible.register(_type)
|
||||
|
||||
|
||||
class NotAssetConvertible(ValueError):
|
||||
|
||||
Reference in New Issue
Block a user