Skip to content

Conversation

@Revathyvenugopal162
Copy link
Contributor

  • Add missing type stubs for PyYAML and docutils
  • Fix type annotations in whatsnew.py, navbar_dropdown.py, linkcode.py
  • Resolve return type issues and missing return statements
  • Fix Path/string conversion issues
  • Add proper Iterator type annotations

- Add missing type stubs for PyYAML and docutils
- Fix type annotations in whatsnew.py, navbar_dropdown.py, linkcode.py
- Resolve return type issues and missing return statements
- Fix Path/string conversion issues
- Add proper Iterator type annotations
@github-actions github-actions bot added the fix Pull requests related to resolving problems or errors label Dec 17, 2025
@github-actions
Copy link

Pull request documentation preview limit (20) reached: skipping documentation deployment for this pull request.

@Revathyvenugopal162
Copy link
Contributor Author

merge after #804

Copy link
Member

@jorgepiloto jorgepiloto left a comment

Choose a reason for hiding this comment

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

How did you find these issues?

Application instance for rendering the documentation.
"""
autoapi = config.html_theme_options.get("ansys_sphinx_theme_autoapi", {})
autoapi = app.config.html_theme_options.get("ansys_sphinx_theme_autoapi", {})
Copy link
Member

Choose a reason for hiding this comment

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

I am surprised about this. This is not a type hint error. It is a different object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think mypy raised this error due to an object type mismatch. We typed config as a dict, but later we tried to access its attributes, which caused the mypy error. In practice, both approaches behave the same in this case, so I added the change. We can safely ignore this mypy error.

@Revathyvenugopal162
Copy link
Contributor Author

How did you find these issues?

I ran mypy in my local environment, where some modules are type-hinted and others are not.

@jorgepiloto
Copy link
Member

How did you find these issues?

I ran mypy in my local environment, where some modules are type-hinted and others are not.

Let's take advantage of this pull-request to implement type checking via pre-commit. We could try ty for this.

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

Labels

fix Pull requests related to resolving problems or errors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants