Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

repr() on a ModelChain instance fails if orientation_strategy = 'None' #352

Copy link
Copy link
@jgaffiot

Description

@jgaffiot
Issue body actions

If orientation_strategy is set to 'None' when creating a ModelChain, the attribute self._orientation_strategy is set to None in the orientation_strategy setter (from line 353).
In the __repr__ method, just above, each attribute is printed thanks to the inner function getmcattr(self, attr). And if the argument attr is None, then the function returns None.
Then, when building the returned chain, None is passed to the concatenation operator, which fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.