You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the methods which were moved from pre should be @staticmethod as they don't require/modify the Preprocessor object.
Alternatively it might even be better to move the whole Template-Preprocessor and it's associated functions (and maybe even the Preprocessor ABC) into their own file.
test all Postprocessors
test the TemplatePreprocessor
fixredmod-team#154: make TemplatePreprocessor methods to classmethods where possible
this allows someone to create a subclass of the Template Preprocessor
and override just some methods
Component.wrap (Pre-, Postprocessor & Worker) now uses functools.wraps
sets various metadata, e.g. the function name
All the methods which were moved from
pre
should be@staticmethod
as they don't require/modify the Preprocessor object.Alternatively it might even be better to move the whole Template-Preprocessor and it's associated functions (and maybe even the Preprocessor ABC) into their own file.
Originally posted by @Rykath in #153 (comment)
The text was updated successfully, but these errors were encountered: