8000 core: retire CoreEvalState.__getattr__, the last untyped hole in the core · Issue #45 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

core: retire CoreEvalState.__getattr__, the last untyped hole in the core #45

Closed

Description

@Lillecarl

CoreEvalState.__getattr__ (_core/_objects.py:397) forwards any unlisted
name to the raw binding and returns Any. Its own docstring says the
equivalent on CoreStore was already removed.

Scope

Replace the remaining unlisted calls with typed methods, then delete
__getattr__.

Caution

Find every call site first. The forwarded names include repl_active,
begin_repl, repl_scope_names and reset_file_cache.

Files

_core/_objects.py, inproc/_impl.py, rpc/worker/_worker_eval.py.

Depends on

#43

Risk

Medium, because a missed call site fails only at runtime.

Acceptance criteria

_core/_objects.py has no __getattr__, and pyright stays at zero.

Compatibility

This breaks a caller that uses CoreEvalState.__getattr__. That is a private
class in a private module.

Finding F9 of CODE_IMPROVEMENT_PLAN.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: nanopynix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0