<!-- Thank you for your contribution! -->
<!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR -->

## Change Summary
Added fix for signature of inherited dataclass when using the pydantic dataclass decorator. 

There is a bug in the following code 

```python
from pydantic.dataclasses import dataclass

@dataclass
class A:
    a: int

@dataclass
class B(A):
    b: int
```
where the signature of the class B does not include the subclass (B) fields (see issue #7906 )

<!-- Please give a short summary of the changes. -->

* Used generate_model_signature to create a temporary signature before running generate_dataclass_signature
* Added unit test for fix

## Related issue number
<!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. -->
fix #7906 

## Checklist

* [ ] The pull request title is a good summary of the changes - it will be used in the changelog
* [x] Unit tests for the changes exist
* [ ] Tests pass on CI
* [ ] Documentation reflects the changes where applicable
* [x] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**

# please review

Added fix for signature of inherited dataclass. <!-- Thank you for your contribution! -->
<!-- Unless your change is trivial, please create an issue to discuss the change before creating a PR -->

## Change Summary
Added fix for signature of inherited dataclass when using the pydantic dataclass decorator. 

There is a bug in the following code 

```python
from pydantic.dataclasses import dataclass

@dataclass
class A:
    a: int

@dataclass
class B(A):
    b: int
```
where the signature of the class B does not include the subclass (B) fields (see issue #7906 )

<!-- Please give a short summary of the changes. -->

* Used generate_model_signature to create a temporary signature before running generate_dataclass_signature
* Added unit test for fix

## Related issue number
<!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. -->
fix #7906 

## Checklist

* [ ] The pull request title is a good summary of the changes - it will be used in the changelog
* [x] Unit tests for the changes exist
* [ ] Tests pass on CI
* [ ] Documentation reflects the changes where applicable
* [x] My PR is ready to review, **please add a comment including the phrase "please review" to assign reviewers**

# please review

#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git merge" with no arguments.  The hook should
# exit with non-zero status after issuing an appropriate message to
# stderr if it wants to stop the merge commit.
#
# To enable this hook, rename this file to "pre-merge-commit".

. git-sh-setup
test -x "$GIT_DIR/hooks/pre-commit" &&
        exec "$GIT_DIR/hooks/pre-commit"
:

#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git merge" with no arguments.  The hook should
# exit with non-zero status after issuing an appropriate message to
# stderr if it wants to stop the merge commit.
#
# To enable this hook, rename this file to "pre-merge-commit".

. git-sh-setup
test -x "$GIT_DIR/hooks/pre-commit" &&
        exec "$GIT_DIR/hooks/pre-commit"
:
