Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc committed Jun 5, 2024
1 parent 066eb98 commit cfb50f5
Show file tree
Hide file tree
Showing 64 changed files with 437 additions and 437 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def initial_call(self, builder: LROOperationType) -> List[str]:
retval.append(" params=_params,")
retval.append(" **kwargs")
retval.append(" )")
retval.append(f" {'await ' if self.async_mode else ''}raw_result.http_response.read()")
retval.append(f" {'await ' if self.async_mode else ''}raw_result.http_response.read() # type: ignore")

retval.append("kwargs.pop('error_map', None)")
return retval
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def begin_basic_polling(
params=_params,
**kwargs
)
raw_result.http_response.read()
raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def begin_basic_polling(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def begin_test_lro(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -413,7 +413,7 @@ async def get_next(next_link=None):
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def begin_test_lro(
params=_params,
**kwargs
)
raw_result.http_response.read()
raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -488,7 +488,7 @@ def get_next(next_link=None):
params=_params,
**kwargs
)
raw_result.http_response.read()
raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ async def get_next(next_link=None):
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,7 @@ def get_next(next_link=None):
params=_params,
**kwargs,
)
raw_result.http_response.read()
raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def begin_put_async_retry_succeeded(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -366,7 +366,7 @@ async def begin_put201_creating_succeeded200(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -520,7 +520,7 @@ async def begin_post202_retry200(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down Expand Up @@ -676,7 +676,7 @@ async def begin_post_async_retry_succeeded(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def begin_put201_creating_succeeded200(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -355,7 +355,7 @@ async def begin_put_async_relative_retry_succeeded(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -462,7 +462,7 @@ async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable
raw_result = await self._delete_provisioning202_accepted200_succeeded_initial(
cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
Expand Down Expand Up @@ -551,7 +551,7 @@ async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[None]:
raw_result = await self._delete202_retry200_initial(
cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down Expand Up @@ -643,7 +643,7 @@ async def begin_delete_async_relative_retry_succeeded( # pylint: disable=name-t
raw_result = await self._delete_async_relative_retry_succeeded_initial(
cls=lambda x, y, z: x, headers=_headers, params=_params, **kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down Expand Up @@ -790,7 +790,7 @@ async def begin_post202_retry200(
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down Expand Up @@ -943,7 +943,7 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too
params=_params,
**kwargs
)
await raw_result.http_response.read()
await raw_result.http_response.read() # type: ignore
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
Expand Down
Loading

0 comments on commit cfb50f5

Please sign in to comment.