Skip to content

Commit 42dd24f

Browse files
authored
Merge pull request #95 from AllDotPy/dev.fletxpage
Flix: `TypeError: Callable must be used as Callable[[arg, ...], result]` Error in FletXPage (#94)
2 parents 07f403f + 656c587 commit 42dd24f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

fletx/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def execute_from_command_line(
8989
return
9090

9191
elif command_name in ['-v', '--version', 'version']:
92-
self.print_vertion()
92+
self.print_version()
9393
return
9494

9595
# Get and execute the command
@@ -181,7 +181,7 @@ def print_help(self):
181181
print(" fletx <command> --help")
182182
print(" fletx help <command>")
183183

184-
def print_vertion(self):
184+
def print_version(self):
185185
"""Print current fletx version"""
186186
from fletx import __version__
187187

fletx/core/page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def close_end_drawer(self):
620620

621621
def open_bottom_sheet(
622622
self, content: ft.Control,
623-
on_dismiss: Optional[Callable[[],]] = None
623+
on_dismiss: Optional[Callable[[ft.ControlEvent], Any]] = None
624624
):
625625
"""Shows a given content in a bottom sheet"""
626626

@@ -636,7 +636,7 @@ def open_bottom_sheet(
636636
def show_loader(
637637
self,
638638
content: Optional[ft.Control] = None,
639-
on_dismiss: Optional[Callable[[ft.ControlEvent]]] = None
639+
on_dismiss: Optional[Callable[[ft.ControlEvent], Any]] = None
640640
):
641641
"""Show a given content in a ft.AlertDialog"""
642642

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "FletXr"
3-
version = "0.1.4.b1"
3+
version = "0.1.4.b230"
44
description = "The GetX-inspired Python Framework for Building Reactive, Cross-Platform Apps with Flet"
55
readme = "PYPI.md"
66
license = {file = "LICENSE"}

setup_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name = 'FletXr',
9-
version = '0.1.4.b1',
9+
version = '0.1.4.b230',
1010
packages = find_packages(),
1111
install_requires = [
1212
"aiohttp>=3.12.13",

0 commit comments

Comments
 (0)