Skip to content

warn when default is None and non-optional converter is used #385

@RonnyPfannschmidt

Description

@RonnyPfannschmidt

#173 introduced optional converters

i noted that attrs doesnt warm if one uses plain types as converters, but just breaks on use later

aka

@attr.s
class Breaks(object):
  bad = attr.ib(default=None, convert=int)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions