Skip to content

autodiscover opmodes + opmode example (v2) - #301

Draft
virtuald wants to merge 9 commits into
mainfrom
opmode-discovery2
Draft

autodiscover opmodes + opmode example (v2)#301
virtuald wants to merge 9 commits into
mainfrom
opmode-discovery2

Conversation

@virtuald

@virtuald virtuald commented Aug 5, 2026

Copy link
Copy Markdown
Member

Alternative to #260, there are aspects of this I like and aspects I don't like. Haven't reviewed yet.

@virtuald

virtuald commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a47524d49

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +451 to +459
target = next(
(
symbols[(scope, path[0])][1]
for scope in scope_order
if (scope, path[0]) in symbols
),
path[0],
)
parent = ".".join((target, *path[1:]))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Track rebinding before rejecting a decorated base

When a scanned module imports a decorated class name and then rebinds that name before defining another class (for example, from external import Base; Base = Other; class Child(Base): ...), symbols still resolves Child to external.Base because assignments are not considered. _find_subclass consequently reports a subclass that does not exist at runtime and suppresses registration of the valid decorated OpMode. Only infer this relationship when the imported name has not subsequently been rebound, or account for intervening assignments.

Useful? React with 👍 / 👎.

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