Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pip._internal.exceptions.HashMissing Class Reference
Inheritance diagram for pip._internal.exceptions.HashMissing:
Inheritance graph
[legend]
Collaboration diagram for pip._internal.exceptions.HashMissing:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, str gotten_hash)
 
str body (self)
 
- Public Member Functions inherited from pip._internal.exceptions.HashError
str __str__ (self)
 

Public Attributes

 gotten_hash
 
 req
 
- Public Attributes inherited from pip._internal.exceptions.HashError
 req
 

Static Public Attributes

int order = 2
 
tuple head
 
- Static Public Attributes inherited from pip._internal.exceptions.HashError
Optional req = None
 
str head = ""
 
int order = -1
 

Additional Inherited Members

- Protected Member Functions inherited from pip._internal.exceptions.HashError
str _requirement_name (self)
 

Detailed Description

A hash was needed for a requirement but is absent.

Constructor & Destructor Documentation

◆ __init__()

None pip._internal.exceptions.HashMissing.__init__ (   self,
str  gotten_hash 
)
:param gotten_hash: The hash of the (possibly malicious) archive we
    just downloaded

Member Function Documentation

◆ body()

str pip._internal.exceptions.HashMissing.body (   self)
Return a summary of me for display under the heading.

This default implementation simply prints a description of the
triggering requirement.

:param req: The InstallRequirement that provoked this error, with
    its link already populated by the resolver's _populate_link().

Reimplemented from pip._internal.exceptions.HashError.

Member Data Documentation

◆ head

tuple pip._internal.exceptions.HashMissing.head
static
Initial value:
= (
"Hashes are required in --require-hashes mode, but they are "
"missing from some requirements. Here is a list of those "
"requirements along with the hashes their downloaded archives "
"actually had. Add lines like these to your requirements files to "
"prevent tampering. (If you did not enable --require-hashes "
"manually, note that it turns on automatically when any package "
"has a hash.)"
)

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