The integrated platform for monitoring & security
Observability
End-to-end, simplified visibility into your stack’s health & performance
製品
Applications
ログ管理
Security
Detect, prioritize, and respond to threats in real-time
Cloud Security
Application Security
Cloud SIEM
Digital Experience
Optimize front-end performance and enhance user experiences
Related Products
Software Delivery
Build, test, secure and ship quality code faster
Service Management
Integrated, streamlined workflows for faster time-to-resolution
AIOps
AI
Monitor and improve model performance. Pinpoint root causes and detect anomalies.
AI Observability
Platform Capabilities
Built-in features & integrations that power the Datadog platform
Built-in Features
Workflows & Collaboration
Extensibility
Industry
Technology
Use-case
Looking for Datadog logos?
You can find the logo assets on our press page.
ID: python-best-practices/any-type-disallow
python-best-practices/any-type-disallow
Language: Python
Severity: Warning
Category: Error Prone
Use the Any type very carefully. Most of the time, the Any type is used because we do not know exactly what type is being used. If you want to specify that a value can be of any type, use object instead of Any.
Any
object
my_var: Any = 1
def foo(x: Any): # do not use Any, use a specific type pass
my_var: int = 1 def my_function(a: str) -> str: pass
Seamless integrations. Try Datadog Code Analysis
1 2
rulesets: - python-best-practices # Rules to enforce Python best practices.
For more information, please read the Code Analysis documentation
Identify code vulnerabilities directly in yourVS Code editor
Identify code vulnerabilities directly inJetBrains products