darthbhyrava added a comment.

  I'm trying to understand the difference between `@deprecated` and 
`@deprecated()` decorators, as defined in `tools`, and I didn't quite 
understand what 'callable' in the description of `@deprecated()` meant:
  
    # The latter is invoked with the decorator arguments as *args & **kwargs,
    # and it must return a callable which will be invoked with the decorated
    # function as args[0].
  
  I've gone with: `@deprecated('RecentChangesPagesGenerator')` to deprecate 
`recentChanges` in `-imageuncat`.
  
  I've submitted a patch for the blocking task as well as this one, please take 
a look? @jayvdb

TASK DETAIL
  https://phabricator.wikimedia.org/T129193

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: darthbhyrava
Cc: Multichill, Mpaa, gerritbot, darthbhyrava, Aklapper, Avicennasis, 
pywikibot-bugs-list, jayvdb, Lewizho99



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to