8000 pylint: Latest updates on skills libraries - internals, http_helper a… · snifhex/botbuilder-python@f8b655a · GitHub
[go: up one dir, main page]

Skip to content

Commit f8b655a

Browse files
committed
pylint: Latest updates on skills libraries - internals, http_helper and bf_skill_client pending
1 parent 4393bc4 commit f8b655a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libraries/botbuilder-core/botbuilder/core/bot_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def process_activity_with_claims(
8282
self,
8383
identity: ClaimsIdentity,
8484
activity: Activity,
85-
callback: Callable[[TurnContext], Awaitable],
85+
logic: Callable[[TurnContext], Awaitable],
8686
): # pylint: disable=unused-argument
8787
raise NotImplementedError()
8888

libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(self, settings: BotFrameworkAdapterSettings):
128128
GovernmentConstants.TO_CHANNEL_FROM_BOT_OAUTH_SCOPE
129129
)
130130

131-
self._APP_CREDENTIALS_CACHE: Dict[str, MicrosoftAppCredentials] = {}
131+
self._app_credentials_cache: Dict[str, MicrosoftAppCredentials] = {}
132132

133133
async def continue_conversation(
134134
self, bot_id: str, reference: ConversationReference, callback: Callable
@@ -701,15 +701,15 @@ async def _get_app_credentials(
701701
return MicrosoftAppCredentials(None, None)
702702

703703
cache_key = f"{app_id}{oauth_scope}"
704-
app_credentials = self._APP_CREDENTIALS_CACHE.get(cache_key)
704+
app_credentials = self._app_credentials_cache.get(cache_key)
705705

706706
if app_credentials:
707707
return app_credentials
708708

709709
# If app credentials were provided, use them as they are the preferred choice moving forward
710710
if self._credentials.microsoft_app_id:
711711
# Cache credentials
712-
self._APP_CREDENTIALS_CACHE[cache_key] = self._credentials
712+
self._app_credentials_cache[cache_key] = self._credentials
713713
return self._credentials
714714

715715
app_password = await self._credential_provider.get_app_password(app_id)
@@ -724,5 +724,5 @@ async def _get_app_credentials(
724724
GovernmentConstants.TO_CHANNEL_FROM_BOT_OAUTH_SCOPE
725725
)
726726

727-
self._APP_CREDENTIALS_CACHE[cache_key] = app_credentials
727+
self._app_credentials_cache[cache_key] = app_credentials
728728
return app_credentials

libraries/botbuilder-skills/botbuilder/skills/channel_api_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class ChannelApiMiddleware(Middleware):
1515
def __init__(self, skill_adapter: SkillClient):
16-
self._SKILL_ADAPTER = skill_adapter
16+
self._skill_adapter = skill_adapter
1717

1818
async def on_turn(
1919
self, context: TurnContext, logic: Callable[[TurnContext], Awaitable]

0 commit comments

Comments
 (0)
0