Skip to content

attrs.converters.pipe makes field Any #4125

Description

@shobhitmehro
class ConvCPipe:
    x: str = attrs.field(converter=attrs.converters.pipe(int, str))


ConvCPipe(3.4)
ConvCPipe("09")
ConvCPipe({})  # pipe makes field Any and doesn't error here

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions