Skip to content

Suggest close operator names in namespace AttributeErrors - #603

Open
eriknw wants to merge 1 commit into
22-docsfrom
23-operator-namespace-ux
Open

Suggest close operator names in namespace AttributeErrors#603
eriknw wants to merge 1 commit into
22-docsfrom
23-operator-namespace-ux

Conversation

@eriknw

@eriknw eriknw commented Aug 4, 2026

Copy link
Copy Markdown
Member

binary.pluss now raises "module 'graphblas.binary' has no attribute
'pluss'. Did you mean 'plus'?" via difflib.get_close_matches over the
module's dir(), so lazily-registered operators are suggested without
forcing them to build (binary._delayed is untouched by a typo lookup,
which the test pins). Applies to all eight operator namespaces; difflib
is imported only on the error path.


Stack created with GitHub Stacks CLIGive Feedback 💬

@eriknw
eriknw marked this pull request as ready for review August 4, 2026 16:07
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch from 7cf15a4 to f4a9570 Compare August 4, 2026 16:12
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch from f4a9570 to d2c6495 Compare August 5, 2026 00:06
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch 2 times, most recently from 037545f to 946740a Compare August 5, 2026 17:44
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch from 946740a to ba433c9 Compare August 5, 2026 18:03
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch 2 times, most recently from b68d166 to 9e56024 Compare August 6, 2026 07:59
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch 2 times, most recently from b3b513a to 8abef88 Compare August 6, 2026 15:41
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch 2 times, most recently from a786e70 to d0cd033 Compare August 6, 2026 20:41
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch from d0cd033 to efa29c8 Compare August 7, 2026 02:48
binary.pluss now raises "module 'graphblas.binary' has no attribute
'pluss'. Did you mean 'plus'?" via difflib.get_close_matches over the
module's __dir__(), so lazily-registered operators are suggested without
forcing them to build (binary._delayed is untouched by a typo lookup,
which the test pins). Applies to all eight operator namespaces; difflib
is imported only on the error path.
@eriknw
eriknw force-pushed the 23-operator-namespace-ux branch from efa29c8 to d6aae24 Compare August 7, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant