Skip to content

pairs of a NamedTuple shows bools as 1/0 even though no type info is shown #54126

Open

Description

Showing booleans as 1/0 should (AFAIU) only be done when there is type context to see that the integer is in fact a bool, but in this case that does not seem to be the case:

julia> pairs((; mmap=true))
pairs(::NamedTuple) with 1 entry:
  :mmap => 1

julia> typeof(ans)
Base.Pairs{Symbol, Bool, Tuple{Symbol}, @NamedTuple{mmap::Bool}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions