Azure / Azure/azure-sdk-for-python

[Mgmt][Botservice] multi inheritance problem

Aperta
#24,972 2 commenti 0 reazioni 1 assegnatario Rivendicata da @msyyc Vedi su GitHub
Mgmt
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
202

Descrizione

- **Package Name**: azure-mgmt-boservice
- **Package Version**: 2.0.0b2
- **Operating System**: Linux/Windows
- **Python Version**: 3.7.0

**Describe the bug**
When initialize model `Site`, the following error will be raised:
```
> super(WebChatSite, self).__init__(**kwargs)
E TypeError: __init__() missing 2 required keyword-only arguments: 'site_name' and 'is_enabled'
```

**To Reproduce**
Steps to reproduce the behavior:
run the following code:
```
from azure.mgmt.botservice.models import Site

Site(
is_v1_enabled=True,
is_v3_enabled=True,
site_name="xxx",
is_enabled=True,
is_webchat_preview_enabled=True,
is_secure_site_enabled=True
)
```

**Expected behavior**
The model could be initialized successfully

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.