Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
61fd0be
Always return a GrampsID of the correct type
stevenyoungs Feb 6, 2025
47f28d0
Always return a generator for DummyDb.iter_<object> methods
stevenyoungs Feb 6, 2025
8fa04f4
Remove unneeded assignment to None
stevenyoungs Feb 6, 2025
59a625b
Explicit type hint not required once get_default_person has type hints
stevenyoungs Feb 6, 2025
eff6d70
Always return a generator from ProxyDbBase.iter_<object>_handles methods
stevenyoungs Feb 6, 2025
c8cc6c4
Cast object to the correct type
stevenyoungs Feb 6, 2025
b904813
Fix comment spelling
stevenyoungs Feb 6, 2025
3b70e1b
Rename the val parameter to gramps_id for consistency
stevenyoungs Feb 6, 2025
7ca418c
Rename the val parameter to name for clarity
stevenyoungs Feb 6, 2025
94942bb
get_<object>_from_handle now raises an error instead of returning None
stevenyoungs Feb 7, 2025
a974af1
return a generator from FilterProxyDb iter_<object>_handles and iter_…
stevenyoungs Feb 7, 2025
3fe2a9e
Define ProxyDbBase predicate methods with the correct type
stevenyoungs Feb 8, 2025
2408042
separate gfilter into two versions
stevenyoungs Feb 8, 2025
601ac7c
Use a consistent type for restricted_to
stevenyoungs Feb 8, 2025
631bda7
Use consistent return types from find_backlink_handles
stevenyoungs Feb 8, 2025
1aa1d03
cast result of find_backlink_handles as only Family classes are inclu…
stevenyoungs Feb 8, 2025
347086c
Adjust comment to match code
stevenyoungs Feb 8, 2025
be80836
DBAPI._get_raw_from_id_data: raise an error instead of returning None
stevenyoungs Feb 8, 2025
98cb987
PERFORMANCE: use has_citation_handle not get_raw_citation_data to che…
stevenyoungs Feb 8, 2025
03a9bc0
Check the handle is valid before trying to get the raw data
stevenyoungs Feb 8, 2025
6446e07
__find_primary_from_handle no longer uses get_raw_obj_from_handle to …
stevenyoungs Feb 9, 2025
39b5913
Fix typo in comment
stevenyoungs Feb 9, 2025
3cc4c95
Explictly return None from DummyDB.get_<object>_from_gramps_id
stevenyoungs Feb 9, 2025
961ec37
Add undo_reference and undo_data methods to DbGeneric
stevenyoungs Feb 10, 2025
b18ea02
Unify the definition of the Database type and move it to types.py
stevenyoungs Feb 10, 2025
655cf8a
Add type hints to db methods
stevenyoungs Mar 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions gramps/gen/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@
from .undoredo import *
from .utils import *
from .generic import *

Database = DbGeneric
Loading
Loading