Skip to content

Commit bdfb3a2

Browse files
changlong-liuchidozieononiwuxiangyan99
authored
clean up resources / fix changelog (#12432) (#12459)
* clean up resources / fix changelog (#12432) * typing fix (#11985) * typing fix Co-authored-by: Chidozie Ononiwu <[email protected]> Co-authored-by: Xiang Yan <[email protected]>
1 parent b20a258 commit bdfb3a2

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This script fragment is used across our repos to set a variable "SetDevVersion" which
2+
# is used when this pipeline is going to be generating and publishing daily dev builds.
3+
4+
steps:
5+
- pwsh: |
6+
$setDailyDevBuild = "false"
7+
if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
8+
$setDailyDevBuild = "true"
9+
}
10+
echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild"
11+
displayName: "Setup Versioning Properties"
12+
condition: eq(variables['SetDevVersion'], '')

eng/pipelines/templates/steps/set-dev-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33
ServiceDirectory: ''
44

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

88
- task: PythonScript@0
99
condition: eq(variables['SetDevVersion'],'true')

sdk/core/azure-core/azure/core/polling/_poller.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@
3131
except ImportError:
3232
from urllib.parse import urlparse
3333

34-
from typing import Any, Callable, Union, List, Optional, Tuple, TypeVar, Generic
34+
from typing import TYPE_CHECKING, TypeVar, Generic
3535
from azure.core.pipeline.transport._base import HttpResponse
3636
from azure.core.tracing.decorator import distributed_trace
3737
from azure.core.tracing.common import with_current_context
3838

39+
if TYPE_CHECKING:
40+
from typing import Any, Callable, Union, List, Optional, Tuple
41+
42+
3943
PollingReturnType = TypeVar("PollingReturnType")
4044

4145

0 commit comments

Comments
 (0)