Azure / Azure/azure-sdk-for-python

[Mgmt][Botservice] multi inheritance problem

オープン
#24,972 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@msyyc がすでに取り組んでいます。

2022年6月24日 から。

Mgmt
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
213

説明

  • 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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。