typed.py file not included in package (so mypy thinks there is no type info available)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- build-system
Piste de recherche
Commencez par comparer le fichier py.typed.txt du dépôt avec les fichiers inclus dans le paquet pip sur PyPI, puis examinez les métadonnées du paquet et la configuration de build qui contrôlent l’inclusion. Reproduisez l’erreur d’importation de mypy avec une version installée de msgraph-core et considérez le problème comme terminé lorsque le paquet publié contient le marqueur correct et que mypy reconnaît ses informations de typage.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When I run mypy against my project that uses the msgraph_core library, I get an error indicating that the library has no type information:
my/code.py:1: error: Skipping analyzing "msgraph_core": module is installed, but missing library stubs or py.typed marker [import-untyped]
my/code.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
I see that there is a file called py.typed.txt in the repo (why not just py.typed?) but it doesn't appear in the package that I get via pip (i.e., the one I'd download from https://pypi.org/project/msgraph-core/#files).
Expected behavior
The py.typed file is in the package; mypy (or other type checking tools) have a correct set of types for the package.
How to reproduce
I'm not sure of an exactly minimal repro case, but unless there is something specifically odd with my environment that's contributing, I would guess:
- create a new Python file that imports something from the
msgraph_corepackage pip install msgraph-core- Run
mypyagainst the file
SDK Version
At least 1.3.3, 1.2.1, and 1.1.6
Latest version known to work for scenario above?
I didn't see the py.typed file in 1.1.0, so it must be at least that old
Known Workarounds
Disable type checking for the msgraph-core package.
Debug output
No response
Configuration
- macOS Sequoia , ARM
- I don't think it's specific to this configuration
Other information
No response
- Langage dominant
- Python
- Étoiles
- 288
- Forks
- 52
- Merge moyen
- 8 h 10 min
- PR mergées (30 j)
- 1
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoftgraph/msgraph-sdk-python-core
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
Logging to root logger Ouvertestatus:waiting-for-triage type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Missing 'deprecated' dependency Ouvertestatus:waiting-for-triage type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
microsoftgraph/msgraph-sdk-python-core#1030 · 2 commentaires · 4 réactions ·
-
Replace httpx with httpx2 Ouvertestatus:waiting-for-triage type:feature
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
-
status:waiting-for-triage type:bug
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
Toutes les issues de microsoftgraph/msgraph-sdk-python-core
Issues similaires
-
link-check link-check:sphinx-theme
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
OpenHands/extensions#626 · 1 commentaire ·
-
Change observation tooltip text Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
CSCfi/sd-search-api#39 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100