Skip to content

Conversation

@atheendre130505
Copy link

@atheendre130505 atheendre130505 commented Nov 4, 2025

Description

This PR removes the deprecated VarName class and all related imports/usages from the PyMC codebase, addressing issue #7843.

Changes

  • Removed VarName class definition
  • Updated all imports and references to use modern alternatives
  • All tests passing with the removal

Related Issue

Fixes #7843

Checklist

  • Code follows PyMC contributing guidelines
  • Tests pass locally
  • No breaking changes to public API (VarName was already deprecated)

📚 Documentation preview 📚: https://pymc--7950.org.readthedocs.build/en/7950/

- Remove VarName NewType definition from util.py
- Replace all VarName type hints with str
- Simplify get_var_name function to use var.name directly
- Update imports in model_graph.py and model/core.py
- Fix all type annotations and function signatures

Resolves pymc-devs#7843
@atheendre130505
Copy link
Author

pre-commit.ci autofix

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove VarName from codebase

1 participant