Add __all__ to __init__.py

Open
#945 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Open the main init.py file and inspect how the package's public names are exposed. Use the reported from invoke import task example with mypy as the first check; the work is done when mypy no longer reports that task is not explicitly exported.

Written by the indexing model from the issue text.

Description

The main init.py file needs to specify an all else mypy will fail with stuff like this

from invoke import task
Module "invoke" does not explicitly export attribute "task"
Dominant language
Python
Stars
4.8k
Forks
412
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pyinvoke/invoke

All issues in pyinvoke/invoke

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.