Add in documentation to all the constants.

This commit is contained in:
Mike Auty
2019-08-18 18:55:57 +01:00
parent 37e13321f9
commit 3d87b06c36
5 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ class FileLayer(interfaces.layers.DataLayerInterface):
self._size = None # type: Optional[int]
# Construct the lock now (shared if made before threading) in case we ever need it
self._lock = DummyLock() # type: Union[DummyLock, threading.Lock]
if constants.PARALLELISM == constants.PARALLELISM_THREADING:
if constants.PARALLELISM == constants.Parallelism.Threading:
self._lock = threading.Lock()
# Instantiate the file to throw exceptions if the file doesn't open
_ = self._file