typed.py file not included in package (so mypy thinks there is no type info available)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- build-system
Línea de trabajo
Comienza comparando el archivo py.typed.txt del repositorio con los archivos incluidos en el paquete pip de PyPI; después, inspecciona los metadatos del paquete y la configuración de compilación que controlan la inclusión. Reproduce el error de importación de mypy con una versión instalada de msgraph-core y considera que el issue está resuelto cuando el paquete publicado contenga el marcador correcto y mypy reconozca su información de tipos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 288
- Forks
- 53
- Merge medio
- 40 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoftgraph/msgraph-sdk-python-core
-
Logging to root loggerAbiertostatus:waiting-for-triage type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoftgraph/msgraph-sdk-python-core#1078 ·
Los mantenedores suelen responder en 1 día
-
Missing 'deprecated' dependencyPosiblemente ocupada @Daiyuanranfeng la tomó hace 3 días. Abiertostatus:waiting-for-triage type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoftgraph/msgraph-sdk-python-core#1030 · 4 comentarios · 4 reacciones ·
Los mantenedores suelen responder en 1 día
-
Replace httpx with httpx2Abiertostatus:waiting-for-triage type:feature
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
microsoftgraph/msgraph-sdk-python-core#1115 ·
Los mantenedores suelen responder en 1 día
-
BatchRequestItem loses query parameters from RequestInformationPosiblemente ocupada @Daiyuanranfeng la tomó hace 3 días. Abiertostatus:waiting-for-triage type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
microsoftgraph/msgraph-sdk-python-core#1035 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
microsoftgraph/msgraph-sdk-python-core#935 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoftgraph/msgraph-sdk-python-core
Issues similares
-
tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Plugin] 群聊记忆 · 人格养成Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
-
bug maintainer-managed
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
awslabs/visual-asset-management-system#1759 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100