Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
packaging.markers.Marker Class Reference

Public Member Functions

None __init__ (self, str marker)
 
str __str__ (self)
 
str __repr__ (self)
 
int __hash__ (self)
 
bool __eq__ (self, Any other)
 
bool evaluate (self, dict[str, str]|None environment=None, EvaluateContext context="metadata")
 

Protected Attributes

 _markers
 

Member Function Documentation

◆ evaluate()

bool packaging.markers.Marker.evaluate (   self,
dict[str, str] | None   environment = None,
EvaluateContext   context = "metadata" 
)
Evaluate a marker.

Return the boolean from evaluating the given marker against the
environment. environment is an optional argument to override all or
part of the determined environment. The *context* parameter specifies what
context the markers are being evaluated for, which influences what markers
are considered valid. Acceptable values are "metadata" (for core metadata;
default), "lock_file", and "requirement" (i.e. all other situations).

The environment is determined from the current Python process.

The documentation for this class was generated from the following file: