mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
1 parent
46ac2fcf46
commit
046b5c216b
11 files changed
+59
-57
No files matched your search
@@ -18,7 +18,7 @@
|
||||
import logging
|
||||
import signal
|
||||
import sys
|
||||
from typing import Dict, Optional
|
||||
from typing import Dict, Optional, Union
|
||||
|
||||
import msgpack
|
||||
import msgpack_numpy
|
||||
@@ -116,7 +116,7 @@ class Viewer:
|
||||
def __repr__(self):
|
||||
return f"<Viewer using: {self.window} at path: {self.path}>"
|
||||
|
||||
def write(self, data: Optional[Dict] = None):
|
||||
def write(self, data: Union[Dict, str, None] = None):
|
||||
"""Write data."""
|
||||
path = self.path.lower()
|
||||
return self.window.send({"type": "write", "path": path, "data": data})
|
||||
|
||||
Reference in new issue
Block a user