Skip to content

macOS accessibility attributes are sometimes '' instead of None #485

@phillco

Description

@phillco

Properties that are shown as "None" in the Accessibility Inspector are frequently reported to Python as empty strings, instead of Nones.

For example, this is a screenshot of the inspector pointing to the iTerm console. The "selected text" properties, as well as "help" are all "None":

Screen Shot 2022-02-14 at 7 19 55 PM

But in Talon, when we print the attrs of that element, they are returned as '':

Screen Shot 2022-02-14 at 7 20 12 PM

cc @nriley

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions