Add support for if TYPE_CHECKING imports; Replaced import names now get correctly written back into a if TYPE_CHECKING block if the replaced name was originally imported there
Add feature flag infer_type_checking_imports to control the newly added behaviour
Add CLI flag --infer-type-checking-imports / --no-infer-type-checking-imports corresponding to the feature flag
Remove feature to remove unused imports. This was largely a leftover feature from the tool unasyncd was extracted from and since it was making the new TYPE_CHECKING feature much more costly and its usage generally discouraged it seemed like the best option to remove it outright
if TYPE_CHECKING
imports; Replaced import names now get correctly written back into aif TYPE_CHECKING
block if the replaced name was originally imported thereinfer_type_checking_imports
to control the newly added behaviour--infer-type-checking-imports
/--no-infer-type-checking-imports
corresponding to the feature flagunasyncd
was extracted from and since it was making the newTYPE_CHECKING
feature much more costly and its usage generally discouraged it seemed like the best option to remove it outright