Skip to content

Type definitions for single file package #1297

Answered by erictraut
remcohaszing asked this question in Q&A
Discussion options

You must be logged in to vote

Your assumption is correct. You would need to switch to a directory structure to include a py.typed marker file. There is no provision in PEP 561 for marking a single-file package as typed.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@remcohaszing
Comment options

@not-my-profile
Comment options

Answer selected by remcohaszing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants