mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Remove collection repr
I find the extra info it adds to tracebacks in pytest just makes them harder to read.
This commit is contained in:
parent
c0e939ceb6
commit
c4f6ec99f7
1 changed files with 0 additions and 5 deletions
|
@ -97,11 +97,6 @@ class Collection:
|
|||
self.conf = ConfigManager(self)
|
||||
self._loadScheduler()
|
||||
|
||||
def __repr__(self) -> str:
|
||||
d = dict(self.__dict__)
|
||||
del d["models"]
|
||||
return f"{super().__repr__()} {pprint.pformat(d, width=300)}"
|
||||
|
||||
def name(self) -> Any:
|
||||
return os.path.splitext(os.path.basename(self.path))[0]
|
||||
|
||||
|
|
Loading…
Reference in a new issue