goodmap 1.1.3__tar.gz → 1.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: goodmap
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Map engine to serve all the people :)
5
5
  License-File: LICENSE.md
6
6
  Author: Krzysztof Kolodzinski
@@ -6,7 +6,6 @@ from pydantic import BaseModel, Field, create_model, field_validator
6
6
  class LocationBase(BaseModel, extra="allow"):
7
7
  position: tuple[float, float]
8
8
  uuid: str
9
- remark: str = ""
10
9
 
11
10
  @field_validator("position")
12
11
  @classmethod
@@ -18,7 +17,11 @@ class LocationBase(BaseModel, extra="allow"):
18
17
  return v
19
18
 
20
19
  def basic_info(self):
21
- return {"uuid": self.uuid, "position": self.position, "remark": bool(self.remark)}
20
+ return {
21
+ "uuid": self.uuid,
22
+ "position": self.position,
23
+ "remark": bool(getattr(self, "remark", False)),
24
+ }
22
25
 
23
26
 
24
27
  def create_location_model(obligatory_fields: list[tuple[str, Type[Any]]]) -> Type[BaseModel]:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "goodmap"
3
- version = "1.1.3"
3
+ version = "1.1.4"
4
4
  description = "Map engine to serve all the people :)"
5
5
  authors = ["Krzysztof Kolodzinski <krzysztof.kolodzinski@problematy.pl>"]
6
6
  readme = "README.md"
@@ -119,7 +119,7 @@ dist_glob_patterns = ["dist/*"]
119
119
  upload_to_vcs_release = true
120
120
 
121
121
  [tool.interrogate]
122
- fail-under = 24
122
+ fail-under = 28
123
123
  ignore-init-method = true
124
124
  ignore-init-module = true
125
125
  ignore-magic = true
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