setup uv package manager
This commit is contained in:
1
.python-version
Normal file
1
.python-version
Normal file
@@ -0,0 +1 @@
|
||||
3.13
|
||||
@@ -1,4 +1,4 @@
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
|
||||
class TimeSlot():
|
||||
@@ -43,7 +43,7 @@ class TimeSlot():
|
||||
def end_now(self):
|
||||
self.end = datetime.now()
|
||||
|
||||
def duration(self) -> datetime.timedelta:
|
||||
def duration(self) -> timedelta:
|
||||
end = self.end
|
||||
if not end: end = datetime.now()
|
||||
return end - self.start
|
||||
|
||||
7
pyproject.toml
Normal file
7
pyproject.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[project]
|
||||
name = "tt"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = []
|
||||
Reference in New Issue
Block a user