Skip to content

refactor(api): remove Any from file factory common helpers#35120

Open
carlos4s wants to merge 2 commits intolanggenius:mainfrom
carlos4s:refactor/34878-file-factory-common-types
Open

refactor(api): remove Any from file factory common helpers#35120
carlos4s wants to merge 2 commits intolanggenius:mainfrom
carlos4s:refactor/34878-file-factory-common-types

Conversation

@carlos4s
Copy link
Copy Markdown
Contributor

Part of #34878

Summary

  • replace Mapping[str, Any] with Mapping[str, object] in api/factories/file_factory/common.py
  • add get_mapping_str() to centralize safe string extraction from persisted file mappings
  • reuse the helper inside resolve_mapping_file_id()

@carlos4s carlos4s requested a review from QuantumGhost as a code owner April 13, 2026 23:47
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. refactor labels Apr 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

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

Labels

refactor size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant