typed.py file not included in package (so mypy thinks there is no type info available)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- build-system
Rechercherichtung
Beginne mit dem Vergleich der Repository-Datei py.typed.txt mit den im pip-Paket auf PyPI enthaltenen Dateien. Untersuche anschließend die Paketmetadaten und die Build-Konfiguration, die die Aufnahme steuern. Reproduziere den mypy-Importfehler mit einer installierten Version von msgraph-core und betrachte das Issue als erledigt, wenn das veröffentlichte Paket den korrekten Marker enthält und mypy seine Typinformationen erkennt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 288
- Forks
- 52
- Ø Merge
- 8 Std. 10 Min.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoftgraph/msgraph-sdk-python-core
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
Logging to root logger Offenstatus:waiting-for-triage type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
status:waiting-for-triage type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoftgraph/msgraph-sdk-python-core#1030 · 2 Kommentare · 4 Reaktionen ·
-
status:waiting-for-triage type:feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
-
status:waiting-for-triage type:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
Alle Issues in microsoftgraph/msgraph-sdk-python-core
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
zostera/django-bootstrap4#894 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
use-agent-os/agent-os#3276 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
NousResearch/hermes-agent#117848 ·