add define __str__ method (#4576)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Fabian 2023-03-19 19:55:12 +01:00 committed by GitHub
parent 48ada2eebb
commit 7196fb8e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,6 +409,9 @@ class Define:
return self.as_tuple == other.as_tuple return self.as_tuple == other.as_tuple
return NotImplemented return NotImplemented
def __str__(self):
return f"{self.name}={self.value}"
class Library: class Library:
def __init__(self, name, version, repository=None): def __init__(self, name, version, repository=None):