jbqt 0.1.11__tar.gz → 0.1.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jbqt might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jbqt
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary:
5
5
  Author: Joseph Bochinski
6
6
  Author-email: stirgejr@gmail.com
@@ -1,6 +1,7 @@
1
1
  import os
2
2
  import re
3
3
 
4
+ from typing import Optional
4
5
 
5
6
  import jbutils
6
7
 
@@ -137,7 +138,10 @@ def recolor_icon(
137
138
 
138
139
 
139
140
  def get_icon(file_name: str) -> IconGetter:
140
- def getter(color: str | QColor = "", size: QSize | int | None = None) -> QIcon:
141
+ def getter(
142
+ color: Optional[str | QColor] = "", size: QSize | int | None = None
143
+ ) -> QIcon:
144
+ color = color or ""
141
145
  if isinstance(size, int):
142
146
  size = QSize(size, size)
143
147
 
@@ -5,4 +5,4 @@ from PyQt6.QtCore import QSize
5
5
  from PyQt6.QtGui import QIcon, QColor
6
6
 
7
7
 
8
- IconGetter = Callable[[str | QColor, QSize | int | None], QIcon]
8
+ IconGetter = Callable[[Optional[str | QColor], QSize | int | None], QIcon]
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "jbqt"
7
- version = "0.1.11"
7
+ version = "0.1.12"
8
8
  description = ""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes