Skip to content

Optionally allow booleans in single-arg functions #7

@dosisod

Description

@dosisod

IMO, the following should not emit an error:

class BooleanExpression:
    def __init__(self, value: bool) -> None:
        self.value = value

BooleanExpression(True)

Assuming that the function/class is properly named, using value=True in this case shouldn't be necessary. That is just my opinion though, so having the option to turn it off in this particular case would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions