Skip to content

Bugfixes for new mf.as_is_callable feature#110

Merged
da-h merged 2 commits intomasterfrom
bugfix_as_is_callable_not_callable
Aug 4, 2022
Merged

Bugfixes for new mf.as_is_callable feature#110
da-h merged 2 commits intomasterfrom
bugfix_as_is_callable_not_callable

Conversation

@da-h
Copy link
Copy Markdown
Owner

@da-h da-h commented Aug 4, 2022

Description

mf.as_is_callable have been introduced in #107.
Its goal is to allow helper variables to be set to classes.
By default, callable variables are expected to be dependency-functions that are called in the initialization phase of miniflask unless specified using parsefn=False.

This MR

  • allows these callable variables defined using mf.as_is_callable to be used/called just as the class-instance it wraps
  • by default sets parsefn to False. This effectively disables searching for dependency-chains for those classes, as this was the whole motivitaion for mf.as_is_callable

@da-h da-h merged commit b83dbc9 into master Aug 4, 2022
@da-h da-h deleted the bugfix_as_is_callable_not_callable branch August 4, 2022 10:18
github-actions Bot pushed a commit that referenced this pull request Aug 4, 2022
Bugfixes for new mf.as_is_callable feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant