Skip to content

Commit

Permalink
clean up resources / fix changelog (#12432) (#12459)
Browse files Browse the repository at this point in the history
* clean up resources / fix changelog (#12432)

* typing fix (#11985)

* typing fix

Co-authored-by: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com>
Co-authored-by: Xiang Yan <xiangsjtu@gmail.com>
  • Loading branch information
3 people authored Jul 15, 2020
1 parent b20a258 commit bdfb3a2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This script fragment is used across our repos to set a variable "SetDevVersion" which
# is used when this pipeline is going to be generating and publishing daily dev builds.

steps:
- pwsh: |
$setDailyDevBuild = "false"
if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
$setDailyDevBuild = "true"
}
echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild"
displayName: "Setup Versioning Properties"
condition: eq(variables['SetDevVersion'], '')
2 changes: 1 addition & 1 deletion eng/pipelines/templates/steps/set-dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
ServiceDirectory: ''

steps:
- template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools
- template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml

- task: PythonScript@0
condition: eq(variables['SetDevVersion'],'true')
Expand Down
6 changes: 5 additions & 1 deletion sdk/core/azure-core/azure/core/polling/_poller.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
except ImportError:
from urllib.parse import urlparse

from typing import Any, Callable, Union, List, Optional, Tuple, TypeVar, Generic
from typing import TYPE_CHECKING, TypeVar, Generic
from azure.core.pipeline.transport._base import HttpResponse
from azure.core.tracing.decorator import distributed_trace
from azure.core.tracing.common import with_current_context

if TYPE_CHECKING:
from typing import Any, Callable, Union, List, Optional, Tuple


PollingReturnType = TypeVar("PollingReturnType")


Expand Down

0 comments on commit bdfb3a2

Please sign in to comment.