Skip to content

Commit 70137d4

Browse files
author
Daniele Esposti
committed
Fixed name clash with built-in types
1 parent a7c107b commit 70137d4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/puremvc/patterns/facade.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def hasMediator(self, mediatorName):
251251
"""
252252
return self.view.hasMediator(mediatorName)
253253

254-
def sendNotification(self, notificationName, body=None, type=None):
254+
def sendNotification(self, notificationName, body=None, noteType=None):
255255
"""
256256
Create and send an C{INotification}.
257257
@@ -260,9 +260,13 @@ def sendNotification(self, notificationName, body=None, type=None):
260260
261261
@param notificationName: the name of the notiification to send
262262
@param body: the body of the notification (optional)
263-
@param type: the type of the notification (optional)
263+
@param noteType: the type of the notification (optional)
264264
"""
265-
self.notifyObservers(puremvc.patterns.observer.Notification(notificationName, body, type))
265+
self.notifyObservers(
266+
puremvc.patterns.observer.Notification(
267+
notificationName, body, noteType
268+
)
269+
)
266270

267271
def notifyObservers(self, notification):
268272
"""

0 commit comments

Comments
 (0)