Skip to content

Drop the mutable default in __init__#1618

Closed
tejasae-afk wants to merge 1 commit intomicrosoft:mainfrom
tejasae-afk:fix/drop-the-mutable-default-in-init
Closed

Drop the mutable default in __init__#1618
tejasae-afk wants to merge 1 commit intomicrosoft:mainfrom
tejasae-afk:fix/drop-the-mutable-default-in-init

Conversation

@tejasae-afk
Copy link

During an automated code review of packages/markitdown/src/markitdown/converters/_doc_intel_converter.py, the following issue was identified. Drop the mutable default in init. Mutable defaults are shared across calls and usually turn into state leaks. I kept the patch small and re-ran syntax checks after applying it.

@tejasae-afk tejasae-afk closed this by deleting the head repository Mar 14, 2026
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