mirror of
https://github.com/vee1e/capa.git
synced 2026-09-03 19:57:17 +00:00
Merge pull request #1182 from mandiant/dependabot/pip/mypy-0.982
build(deps-dev): bump mypy from 0.971 to 0.982
This commit is contained in:
commit
055700a5d1
2 changed files with 13 additions and 1 deletions
|
|
@ -32,6 +32,9 @@ class AbsoluteVirtualAddress(int, Address):
|
|||
def __repr__(self):
|
||||
return f"absolute(0x{self:x})"
|
||||
|
||||
def __hash__(self):
|
||||
return int.__hash__(self)
|
||||
|
||||
|
||||
class RelativeVirtualAddress(int, Address):
|
||||
"""a memory address relative to a base address"""
|
||||
|
|
@ -39,6 +42,9 @@ class RelativeVirtualAddress(int, Address):
|
|||
def __repr__(self):
|
||||
return f"relative(0x{self:x})"
|
||||
|
||||
def __hash__(self):
|
||||
return int.__hash__(self)
|
||||
|
||||
|
||||
class FileOffsetAddress(int, Address):
|
||||
"""an address relative to the start of a file"""
|
||||
|
|
@ -50,6 +56,9 @@ class FileOffsetAddress(int, Address):
|
|||
def __repr__(self):
|
||||
return f"file(0x{self:x})"
|
||||
|
||||
def __hash__(self):
|
||||
return int.__hash__(self)
|
||||
|
||||
|
||||
class DNTokenAddress(int, Address):
|
||||
"""a .NET token"""
|
||||
|
|
@ -60,6 +69,9 @@ class DNTokenAddress(int, Address):
|
|||
def __repr__(self):
|
||||
return f"token(0x{self:x})"
|
||||
|
||||
def __hash__(self):
|
||||
return int.__hash__(self)
|
||||
|
||||
|
||||
class DNTokenOffsetAddress(Address):
|
||||
"""an offset into an object specified by a .NET token"""
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -76,7 +76,7 @@ setuptools.setup(
|
|||
"pycodestyle==2.9.1",
|
||||
"black==22.10.0",
|
||||
"isort==5.10.1",
|
||||
"mypy==0.971",
|
||||
"mypy==0.982",
|
||||
"psutil==5.9.2",
|
||||
"stix2==3.0.1",
|
||||
"requests==2.28.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue