Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix pylint/black
  • Loading branch information
swathipil committed Feb 21, 2024
commit 98f0f4569d472cd4e229dfecc99ef00da01741e3
1 change: 0 additions & 1 deletion sdk/core/corehttp/corehttp/runtime/policies/_base_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#
# --------------------------------------------------------------------------
from __future__ import annotations
import abc

from typing import Generic, TypeVar, TYPE_CHECKING
from typing_extensions import Protocol, runtime_checkable
Expand Down
1 change: 1 addition & 0 deletions sdk/core/corehttp/corehttp/runtime/policies/_universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def on_response( # pylint: disable=unused-argument
"""
return None


class UserAgentPolicy(SansIOHTTPPolicy[HTTPRequestType, HTTPResponseType]):
"""User-Agent Policy. Allows custom values to be added to the User-Agent header.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

@pytest.mark.asyncio
async def test_sans_io_exception():

class SansIOHTTPPolicyImpl(SansIOHTTPPolicy):
def on_request(self, request):
pass

def on_response(self, request, response):
pass

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/corehttp/tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@


def test_sans_io_exception():

class SansIOHTTPPolicyImpl(SansIOHTTPPolicy):
def on_request(self, request):
pass

def on_response(self, request, response):
pass

Expand Down