Skip to content

[EventHub] Fix pylint error in azure-eventhub-checkpointstoreblob-aio package #41243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented May 21, 2025

This PR addresses the pylint warning about importing asyncio in the azure-eventhub-checkpointstoreblob-aio package.

The issue was caused by a direct import of asyncio in the _blobstoragecsaio.py file, which was flagged by the pylint rule C4763 (do-not-import-asyncio). According to this rule:

If asyncio.sleep() is being called and there is an azure core transport created, we should instead use the sleep function from the azure.core.pipeline.transport context instead of importing asyncio. For other imports of asyncio, ignore this warning.

Since the code only uses asyncio.gather() and not asyncio.sleep(), I've added a pylint directive to disable this specific warning for the import statement, which is the appropriate solution based on the rule description. This maintains the existing functionality while resolving the linting error.

import asyncio  # pylint: disable=do-not-import-asyncio

Fixes #41242.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] [EventHub] fix pylint error [EventHub] Fix pylint error in azure-eventhub-checkpointstoreblob-aio package May 21, 2025
@Copilot Copilot AI requested a review from swathipil May 21, 2025 16:34
@swathipil swathipil marked this pull request as ready for review May 21, 2025 17:15
@swathipil swathipil requested a review from annatisch as a code owner May 21, 2025 17:15
@swathipil swathipil enabled auto-merge (squash) May 21, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EventHub] fix pylint error
4 participants