Azure / Azure/azure-sdk-for-python

azure.mgmt.eventhub.models.EHNamespace.disable_local_auth not recognized by mypy

Open
#37,901 7 comments 0 reactions 1 assignee Assigned to @msyyc View on GitHub
customer-reported Event Hubs Mgmt needs-team-attention question
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

- **Package Name**: azure.mgmt.eventhub
- **Package Version**: 11.1.0
- **Operating System**: Linux
- **Python Version**: 3.12

**Describe the bug**
mypy claims that azure.mgmt.eventhub.models.EHNamespace has no disable_local_auth attribute

**To Reproduce**
$ cat example.py
import azure.mgmt.eventhub.models

ehn = azure.mgmt.eventhub.models.EHNamespace()
print(f"ehn.disable_local_auth is {ehn.disable_local_auth!r}")

$ python3 example.py
ehn.disable_local_auth is None

$ mypy example.py
example.py:4:35: error: "EHNamespace" has no attribute "disable_local_auth" [attr-defined]
Found 1 error in 1 file (checked 1 source file)

**Expected behavior**
I expect mypy to recognize that disable_local_auth is a valid attribute

**Screenshots**
see repro above

**Additional context**
n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.