Skip to content

"Cannot access member" when overloading/rewriting an inherited class method of an included module? #1991

Answered by JelleZijlstra
HunterAP23 asked this question in Q&A
Discussion options

You must be logged in to vote

Mypy wouldn't give errors here because your function doesn't have type annotations. The issue is simply that you're using private attributes that aren't present in typeshed (https://github.com/python/typeshed/blob/master/stdlib/concurrent/futures/process.pyi). Typeshed's policy is to add private attributes when a user asks for them, so feel free to submit a PR to typeshed to add what you need.

Replies: 1 comment 2 replies

Comment options

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

@JelleZijlstra
Comment options

Answer selected by HunterAP23
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