Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions featuremanagement/_featuremanagerbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import hashlib
import logging
from abc import ABC
from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable, cast
from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable
from ._models import FeatureFlag, Variant, VariantAssignmentReason, TargetingContext, EvaluationEvent, VariantReference

FEATURE_MANAGEMENT_KEY = "feature_management"
Expand Down Expand Up @@ -293,4 +293,4 @@ def _get_feature_flags(self) -> List[Any]:
feature_flags = feature_management.get(FEATURE_FLAG_KEY)
if not feature_flags or not isinstance(feature_flags, list):
return []
return cast(List[Any], feature_flags)
return feature_flags
Comment thread
mrm9084 marked this conversation as resolved.
33 changes: 19 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = "--import-mode=importlib"
markers = [
"asyncio: mark a test as an asyncio test",
]
pythonpath = [
"."
]
Comment thread
Copilot marked this conversation as resolved.
Expand Down Expand Up @@ -58,21 +63,21 @@ Homepage = "https://github.com/microsoft/FeatureManagement-Python"
Issues = "https://github.com/microsoft/FeatureManagement-Python/issues"

[project.optional-dependencies]
AzureMonitor = ["opentelemetry-sdk~=1.20"]
AzureMonitor = ["opentelemetry-sdk~=1.44.0"]
test = [
"azure-monitor-opentelemetry < 2.0.0",
"azure-monitor-opentelemetry < 1.8.9",
]
dev = [
"pytest >= 7.0.0, < 10.0.0",
"pytest-cov >= 4.0.0, < 8.0.0",
"pytest-asyncio >= 0.21.0, < 2.0.0",
"black >= 23.0.0, < 27.0.0",
"pylint >= 3.0.0, < 5.0.0",
"mypy >= 1.0.0, < 2.0.0",
"sphinx >= 7.0.0, < 10.0.0",
"sphinx_rtd_theme >= 2.0.0, < 4.0.0",
"sphinx-toolbox >= 3.0.0, < 5.0.0",
"myst_parser >= 2.0.0, < 6.0.0",
"opentelemetry-api~=1.20",
"opentelemetry-sdk~=1.20",
"pytest >= 9.1.1, < 10.0.0",
"pytest-cov >= 7.1.0, < 8.0.0",
"pytest-asyncio >= 1.4.0, < 2.0.0",
"black >= 26.5.1, < 27.0.0",
"pylint >= 4.0.7, < 5.0.0",
"mypy >= 2.3.0, < 3.0.0",
"sphinx >= 8.1.3, < 10.0.0",
"sphinx_rtd_theme >= 3.1.0, < 4.0.0",
"sphinx-toolbox >= 4.3.0, < 5.0.0",
"myst_parser >= 4.0.1, < 6.0.0",
"opentelemetry-api~=1.44.0",
"opentelemetry-sdk~=1.44.0",
]
Loading