From c54048486899b941de62244848d44c576451f9c1 Mon Sep 17 00:00:00 2001 From: meni181818 Date: Wed, 8 Jun 2022 14:02:43 +0300 Subject: [PATCH] return type of get_date() to -> datetime.date as described in the comment. ```python """Return the content of the DateEntry as a datetime.date instance.""" ``` --- tkcalendar/dateentry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tkcalendar/dateentry.py b/tkcalendar/dateentry.py index e6d782e..e1c8755 100644 --- a/tkcalendar/dateentry.py +++ b/tkcalendar/dateentry.py @@ -25,6 +25,7 @@ from sys import platform +from datetime import date as datetime_date try: import tkinter as tk from tkinter import ttk @@ -426,7 +427,7 @@ def set_date(self, date): self._set_text(txt) self._validate_date() - def get_date(self): + def get_date(self) -> datetime_date: """Return the content of the DateEntry as a datetime.date instance.""" self._validate_date() return self.parse_date(self.get())