Add missing examples/__init__.py #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/quoracle#3
Loading…
Reference in a new issue
No description provided.
Delete branch "examples_module"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Required for:
What happens when you run
python3 -m examples.case_study
? For me, it runs fine without needing an__init__.py
file in in theexamples/
directory.Guessing you have examples module accessible from somewhere else in your sys.path.
Interesting! Yeah, I can't say I fully understand how Python goes looking for stuff. Thanks for the PR!
More discussion on the topic:
https://github.com/python/mypy/issues/2773
without the init.py it's possible that mypy will ignore the directory
and not type check an entire module. But things got complicated with
certain limited module types that can be added without a init.py in
python3.
On Mon, Apr 5, 2021 at 9:22 AM Michael Whittaker @.***>
wrote: