You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -184,26 +184,44 @@ Adds a decorator to a function or method.
184
184
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">bool</code> }description="True if the decorator was added, False if skipped."/>
<Returnreturn_type={ <><ahref="/api-reference/core/Import"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Import</a> <span>| None</span></>}description="The existing import for the symbol if found, otherwise None."/>
@@ -241,41 +259,6 @@ Adds a symbol to a file from a string representation.
241
259
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">None</code> }description="The symbol is added directly to the file's content."/>
description="Whether this is a type-only import. Defaults to False."
271
-
defaultValue="False"
272
-
/>
273
-
</ParameterWrapper>
274
-
275
-
276
-
<Returnreturn_type={ <><ahref="/api-reference/core/Import"style={ {fontWeight: "inherit", fontSize: "inherit"} }>Import</a> <span>| None</span></> }description="The existing import for the symbol or None if it was added."/>
@@ -188,26 +188,44 @@ Adds a decorator to a function or method.
188
188
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">bool</code> }description="True if the decorator was added, False if skipped."/>
description="Whether this is a type-only import. Only used when imp is a Symbol. Defaults to False."
218
+
defaultValue="False"
219
+
/>
202
220
</ParameterWrapper>
203
221
204
222
205
-
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">None</code>}description="This function modifies the file in place."/>
223
+
<Returnreturn_type={ <><ahref="/api-reference/python/PyImport"style={ {fontWeight: "inherit", fontSize: "inherit"} }>PyImport</a> <span>| None</span></>}description="The existing import for the symbol if found, otherwise None."/>
@@ -245,41 +263,6 @@ Adds a symbol to a file from a string representation.
245
263
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">None</code> }description="The symbol is added directly to the file's content."/>
description="Whether this is a type-only import. Defaults to False."
275
-
defaultValue="False"
276
-
/>
277
-
</ParameterWrapper>
278
-
279
-
280
-
<Returnreturn_type={ <><ahref="/api-reference/python/PyImport"style={ {fontWeight: "inherit", fontSize: "inherit"} }>PyImport</a> <span>| None</span></> }description="The existing import for the symbol or None if it was added."/>
<Returnreturn_type={ <codeclassName="text-sm bg-gray-100 px-2 py-0.5 rounded">list[str]</code> }description="A list containing '.py' as the only Python file extension."/>
@@ -495,7 +478,7 @@ Returns the import with matching alias. Returns None if not found.
0 commit comments