Skip to content

Commit 30a6623

Browse files
authored
Wild imports typo
1 parent 83cac75 commit 30a6623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ NameError: name '_another_weird_name_func' is not defined
26512651
26522652
#### 💡 Explanation:
26532653
2654-
- It is often advisable to not use wildcard imports. The first obvious reason for this is, in wildcard imports, the names with a leading underscore get imported. This may lead to errors during runtime.
2654+
- It is often advisable to not use wildcard imports. The first obvious reason for this is, in wildcard imports, the names with a leading underscore don't get imported. This may lead to errors during runtime.
26552655
- Had we used `from ... import a, b, c` syntax, the above `NameError` wouldn't have occurred.
26562656
```py
26572657
>>> from module import some_weird_name_func_, _another_weird_name_func

0 commit comments

Comments
 (0)